material-components-ios
material-components-ios copied to clipboard
Bug when changing rootViewController
Reproduction steps
Steps to reproduce the behavior:
- Highlight view on screen
- Hide app
- In applicationDidEnterBackground change rootViewController
- Bring back the rootViewController in applicationWillEnterForeground
Expected behavior
MDCFeatureHighlightViewController will close like in iOS 15
Actual behavior
Only MDCFeatureHighlightViewController remains in the view hierarchy. If you close it, nothing is left on the screen.


Platform (please complete the following information)
- Device: iPhone 5 (Simulator)
- OS: iOS 12.4
Additional context
To make it easy to reproduce the bug, I wrote an app and uploaded it to GitHub. https://github.com/red-beeard/Feature-Highlight-Bug.git
Presumably, the bug is reproduced on devices with iOS 12 and earlier.