How to cast a struct to Anyobject in Swift 2?
Question or issue on macOS: I have,
Continue ReadingQuestion or issue on macOS: I have,
Continue ReadingQuestion or problem in the Swift programming language: Using Swift, I want to write a protocol that specifies that implementing classes must have a function that takes an enum (which adheres to a given protocol), where that enum type is specified generically. I’ve tried this:
Continue ReadingQuestion or issue on macOS: OK, here’s what I want :
Continue ReadingQuestion or problem in the Swift programming language: Is there a way to list all Variables of a class in Swift?
Continue ReadingQuestion or problem in the Swift programming language: Given the following class, how can all the values in two instances be compared to each other?
Continue ReadingQuestion or issue on macOS: okay, so I understand that an object is an instance of a class that must be allocated and initialized, but are classes themselves objects?
Continue ReadingQuestion or problem in the Swift programming language: I have read some posts like this one about the difference between subclassing NSObject in Swift or just having its native base class with no subclassing. But they all are a bit old posts, and I am not clear about this topic.
Continue ReadingQuestion or problem in the Swift programming language: I don’t understand why programmers use the extension keyword in their class implementation. You can read in other topics that code is then more semantically separated and etc. But when I work with my own code, it feels clearer to me to use // MARK – Something. […]
Continue Reading