[swift-evolution] viewWill/DidAppear and viewWill/DidDisappear should have "animated" argument label (Victor Gao)
victorgao44 at gmail.com
Wed Jun 22 07:43:25 CDT 2016
In the new iOS SDK with Swift 3, I noticed that the viewWillAppear, viewDidAppear, viewWillDisappear and viewDidDisappear hide the animated argument label. Which means when the SDK calls those methods it will look like this:
Obviously this runs counter to the Swift API Design Guidelines, thus results in unclear and confusing code. Instead, these methods should have the “animated" argument label so it would be clear what the boolean flag means.
More information about the swift-evolution