Firebase Analytics setScreenName deprecated
I did it in this way:
Deprecated code
Analytics.setScreenName(name, screenClass: className)
new code
Analytics.logEvent(AnalyticsEventScreenView, parameters: [AnalyticsParameterScreenName: name,
AnalyticsParameterScreenClass: className])
This is the code to rewrite the deprecated method:
Replace this line:
Analytics.setScreenName(screenName, screenClass: nil)
With this line:
Analytics.logEvent(AnalyticsEventScreenView, parameters: [AnalyticsParameterScreenName: screenName])