Mapbox Navigation SDK version
3.12.1
Steps to reproduce
This behavior was originally introduced in #519 (comment)
- Create an app that doesn't immediately user MapBox screens
- Add an arbitrary
UIView to UIWindow
- Create constraints between this view and the window
- Instantiate
NavigationViewController
- Set
NavigationViewController.showsSpeedLimits = false
- This is going to cause
StyleManager.refreshAppearance(for:) call
Expected behavior
Arbitrary UIView is left untouched, still constrained to the UIWindow
Actual behavior
Any unrelated UIView that is direct child of the UIWindow gets removed, losing the constraints, and re-added back to the window.
Is this a one-time issue or a repeatable issue?
repeatable