I have recently started looking into Firebase/Google Analytics. I am trying to use the following piece of code to log a screen_view event, but nothing happens in my console. I am using SwiftUI and the following code is run in an .onAppear clause.
Analytics.logEvent(AnalyticsEventScreenView,
parameters: [AnalyticsParameterScreenName: "Initial Load",
AnalyticsParameterScreenClass: InitialLoadView.self])
Is there something that I have misunderstood or is there a bug with SwiftUI and Firebase Analytics at the moment?