UINavigationController.popViewController(animated:) should be imported as @discardableResult in Swift 3
Originator: | an00na | ||
Number: | rdar://29502910 | Date Originated: | 04-Dec-2016 12:35 PM |
Status: | Duplicate of 28233249 (Open) | Resolved: | |
Product: | iOS + SDK | Product Version: | 10.1 |
Classification: | Enhancement | Reproducible: | Always |
Area: UIKit Summary: UINavigationController.popViewController(animated:) should be imported as @discardableResult in Swift 3. It is exactly the same as the removeLast() sample in Motivation of the proposal: https://github.com/apple/swift-evolution/blob/master/proposals/0047-nonvoid-warn.md. Currently it causes this warning: Expression of type 'UIViewController?' is unused Reference: http://stackoverflow.com/questions/37843049/xcode-8-swift-3-expression-of-type-uiviewcontroller-is-unused-warning
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!