Posts

Post not yet marked as solved
2 Replies
2.2k Views
private var observation: NSKeyValueObservation? init() { observation = observe( \.thumbnailsController.assets, options: [.new], changeHandler: { [weak self] _, change in /// code goes here } }) } deinit { if let observation = observation { removeObserver(observation, forKeyPath: "thumbnailsController.assets") } }Cannot remove an observer <_NSKeyValueObservation 0x280565e40> for the key path "thumbnailsController.assets" from because it is not registered as an observer. (null)Removing observer crash in iOS 13 but not on iOS 12. Should I file a bug?
Posted Last updated
.
Post not yet marked as solved
1 Replies
691 Views
iOS 13 Beta 1https://developer.apple.com/documentation/photokit/phimagemanager/1616964-requestimageIn iOS 12 and below this function contains PHImageResultIsDegradedKey in info dictionary. It no longer does in iOS 13 betaIs this intended?(lldb) po info ▿ Optional<dictionary<anyhashable, any="">> ▿ some : 1 element ▿ 0 : 2 elements ▿ key : AnyHashable("PHImageResultRequestIDKey") - value : "PHImageResultRequestIDKey" - value : 56
Posted Last updated
.