amplitude / Amplitude-Swift

Native iOS/tvOS/macOS/watchOS SDK
MIT License
26 stars 20 forks source link

Feat: dedup screen views #194

Closed crleona closed 2 months ago

crleona commented 2 months ago

Summary

Screen views will no longer fire if the topmost view controller is the same. This prevents an issue where embedded view controllers would mistakenly fire multiple events, as each would receive a call to viewDidAppear despite the top view controller being the same.

This also cleans up and improves thread safety for the UIKitScreenViews class.

Checklist

github-actions[bot] commented 2 months ago

:tada: This PR is included in version 1.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: