You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that we are trying to KVO observe changes in an AVPlayerViewController's "isReadyForDisplay" property. But no change notifications are triggered. Why? The reason is that "isReadyForDisplay", although it is now officially the Swift name of this property, is actually only the getter name; the setter name is "readyForDisplay", and that's what we are trying to observe, i.e. setting.
So I'm suggesting that the new renamification which uses the getter with "is" as the name of the property in Swift is going to mislead users and their KVO attempts will fail. But maybe #keyPath could be smarter about this and translate behind the scenes into the real name of the property?
The text was updated successfully, but these errors were encountered:
Environment
Xcode Version 8.0 beta 6 (8S201h)
Additional Detail from JIRA
md5: 96414707255510267f6831d0ef5651f8
Issue Description:
This doesn't work:
The problem is that we are trying to KVO observe changes in an AVPlayerViewController's "isReadyForDisplay" property. But no change notifications are triggered. Why? The reason is that "isReadyForDisplay", although it is now officially the Swift name of this property, is actually only the getter name; the setter name is "readyForDisplay", and that's what we are trying to observe, i.e. setting.
So I'm suggesting that the new renamification which uses the getter with "is" as the name of the property in Swift is going to mislead users and their KVO attempts will fail. But maybe #keyPath could be smarter about this and translate behind the scenes into the real name of the property?
The text was updated successfully, but these errors were encountered: