Bug.IgnoreSmartInvert rdar://45663655
This sample project demos a bug of UIView.accessibilityIgnoresInvertColors.
When iOS 11/12 Smart Invert feature is on, set ignoring all UIViews with UIView.appearance() protocol, present then dismiss a view controller, the presenting view controller will ignore the ignoring setting.
Reproduce steps:
- On an iOS 11 or 12 device, enable Smart Invert
- Launch the app
- In application(didFinishLaunchingWithOptions:), call UIView.appearance().accessibilityIgnoresInvertColors = true
- Present a view controller
- Dismiss the view controller
Expected: Presenting view controller and its subviews ignore invert.
Actual: Presenting view controller and its subviews become inverted colors.
Notes: See video for demo: