We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Area: UIKit
Summary:
Calls to setNeedsUpdateOfHomeIndicatorAutoHidden result in doesNotRecognizeSelector crash.
The crash only occurs in iOS 11 as the call is wrapped within an #available scope:
override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) if #available(iOS 11, *) { setNeedsUpdateOfHomeIndicatorAutoHidden() // crash on iOS 11 with doesNotRecognizeSelector } setNeedsStatusBarAppearanceUpdate() }
This works, but we shouldn't need to make the additional "responds" check:
if #available(iOS 11, *) { if responds(to: #selector(setNeedsUpdateOfHomeIndicatorAutoHidden)) { setNeedsUpdateOfHomeIndicatorAutoHidden() } }
Steps to Reproduce:
Expected Results:
No crash.
Actual Results:
Crash.
Version/Build:
Xcode 9.0.1. Swift 4.0
Product Version: Xcode 9.0.1 (9A1004) Created: 2017-10-26T18:20:39.280030 Originated: 2017-10-23T00:00:00 Open Radar Link: http://www.openradar.me/35127134
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Area:
UIKit
Summary:
Calls to setNeedsUpdateOfHomeIndicatorAutoHidden result in doesNotRecognizeSelector crash.
The crash only occurs in iOS 11 as the call is wrapped within an #available scope:
This works, but we shouldn't need to make the additional "responds" check:
Steps to Reproduce:
Expected Results:
No crash.
Actual Results:
Crash.
Version/Build:
Xcode 9.0.1. Swift 4.0
Product Version: Xcode 9.0.1 (9A1004)
Created: 2017-10-26T18:20:39.280030
Originated: 2017-10-23T00:00:00
Open Radar Link: http://www.openradar.me/35127134
The text was updated successfully, but these errors were encountered: