[swift-evolution] viewWill/DidAppear and viewWill/DidDisappear should have "animated" argument label (Victor Gao)
David Hart
david at hartbit.com
Wed Jun 22 10:54:03 CDT 2016
I think you need to write a bug report on bugreport.apple.com as it concerns an Apple Framework. But yes, I agree with you :) It does not follow the Swift API Design Guidelines.
> On 22 Jun 2016, at 14:38, Victor Gao via swift-evolution <swift-evolution at swift.org> wrote:
>
> Hi all,
>
> 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:
>
> viewWillAppear(true)
> viewDidAppear(true)
> //and others
>
> 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.
>
> Cheers,
> Victor Gao
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
More information about the swift-evolution
mailing list