Documentation Conventions for Swift Enumerations

3 answers

This is due to updated API Guides in Swift 3. Before Swift 3, case listings were to be written in UpperCamelCase, whereas now the standard has changed to lowerCamelCase. The inconsistencies you experienced may be due to the fact that you are not using Swift 3.0 yet.

0

In the newest version of fast, fast 3, the naming convention of enumerations has changed.

The name displayed on the Apple website is the newest version, so the listings are in camelCase. On the other hand, you have not updated Xcode yet, so you will only see enumeration values ​​in PascalCase, which for him is the old naming convention.

You do not need to worry about it. When you decide to upgrade to Swift 3, Xcode will be able to transfer all these things for you!

0
source

Source: https://habr.com/ru/post/1654663/


All Articles