[swift-evolution] "layoutSubviews()" and "layoutIfNeeded()" camel casing mistake

Charlie Monroe charlie at charliemonroe.net
Mon Aug 14 11:26:58 CDT 2017

Hi Matthias,

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:
> Hi,
> 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:
> https://www.merriam-webster.com/dictionary/lay%20out
> https://www.merriam-webster.com/dictionary/layout
> Matthias
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170814/3037b344/attachment.html>

More information about the swift-evolution mailing list