Is it possible to allow didSet to be called during initialization in Swift?
Question Apple’s docs specify that: willSet and didSet observers are not called when a property is first initialized. They are only called when … Read more
Question Apple’s docs specify that: willSet and didSet observers are not called when a property is first initialized. They are only called when … Read more
Swift has a property declaration syntax very similar to C#’s: var foo: Int { get { return getFoo() } set { setFoo(newValue) } … Read more