Swift and KVO context variables
Explains a Swift KVO crash with .initial option and provides a solution using global/static context variables for thread safety.
Explains a Swift KVO crash with .initial option and provides a solution using global/static context variables for thread safety.
A guide to implementing a custom Observable property wrapper in Swift, covering API design, type conversion, and current language limitations.
Explains when to manually call willChangeValueForKey for KVO in Objective-C, using NSOperation as an example of proper usage.
Explains how to automate removal of NSNotificationCenter and KVO observers in iOS using method swizzling and associated objects to prevent crashes.