View
public extension View-
Logs
screen_viewevents in Google Analytics for Firebase when this view appears on screen.Declaration
Swift
func analyticsScreen(name: String, class: String = "View", extraParameters: [String: Any] = [:]) -> some ViewParameters
nameCurrent screen name logged with the
screen_viewevent.classCurrent screen class or struct logged with the
screen_viewevent.extraParametersAny additional parameters to be logged. These extra parameters must follow the same rules as described in the
Analytics.logEvent(_:parameters:)docs.Return Value
A view with a custom
ViewModifierused to logscreen_viewevents when this view appears on screen.