On the Apple API docs the enumeration is listed as deleteSelf
yet in my Xcode the actual enumeration seems to be DeleteSelf
- note the capitalisation difference at the start. Not a big deal but wasted some time trying to figure out why it would not recognise that enumeration.
Is there some documentation convention or is that a mistake on the Apple site?
This has to do with the updated API Guidelines in Swift 3. Before Swift 3 enumeration cases were supposed to be written in UpperCamelCase, whereas now the standard has changed to lowerCamelCase. The inconsistencies that you've experienced might be due to the fact that you are not using Swift 3.0 yet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With