[swift-evolution] "layoutSubviews()" and "layoutIfNeeded()" camel casing mistake
charlie at charliemonroe.net
Mon Aug 14 11:26:58 CDT 2017
UIKit is not part of Swift - it's maintained by Apple. You may file a bug report at bugreport.apple.com <http://bugreport.apple.com/>, but my guess is that the chances that this will change are very slim.
> On Aug 14, 2017, at 6:11 PM, Matthias Heymann via swift-evolution <swift-evolution at swift.org> wrote:
> I noticed that strictly speaking, the camel casing of methods like “layoutSubviews()” and "layoutIfNeeded()" in the UIView class is wrong:
> Clearly, the word “layout” is used as a verb here and should therefore be spelled as TWO words, as in “please lay out all subviews”. Only the noun form is spelled as one word, as in “the layout needs to be updated”.
> Therefore, it should rather be “layOutSubviews()” and “layOutIfNeeded()”.
> A lot of people are getting this wrong, so please don’t judge from what you see other people do, but rather what the dictionary says:
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution