I want an ongoing place to keep track of issues I find with Apple’s programming language, Swift. So here it is. Note that I generally like Swift. I just want a record of issues I run into. Of course the nature of
issue is IMHO. The ordering here is the reverse of my adding them. The most recent are at the top.
- 6/17/16. In Xcode 7.3.1, why can’t you use let constants, which have statically assigned constants, to initialize String raw valued enums? Xcode’s error is “Raw value for enum case must be a literal”.
The definition for
public static let userTypeOwning = "OwningUser"
- 5/30/16. In Xcode 7.3.1, why can’t you directly create arrays with dot types? For example, see
resultin the following:
SMImageTextVew.ImageTextViewelement is an enum type. I find it necessary to create a type alias and then create the array. Odd.
- 5/30/16. You can’t throw from setters/getters in computed properties.
- Issues with Comparison Operators and Optional Chaining, e.g.,
self.instance?.value < 0