Xcode 6.1 (6A1052c): Swift - can't observe read-only properties
| Originator: | adam | ||
| Number: | rdar://18981273 | Date Originated: | 14-Nov-2014 07:02 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6.1 (6A1052c) |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
I’ve subclassed AVPlayerViewController for a tech demo and I’m trying to get the right position to add overlays. I figured that using the `readyForDisplay` property would be the best bet, so I set about using a Swift observer:
override var readyForDisplay: Bool {
didSet {
}
}
This generates an error - saying it can’t be observed because it can’t change. Then what good is this property? Should I poll the thing like an animal???
Steps to Reproduce:
Given
Expected Results:
Ability to observe read-only properties so that I can do cool stuff afterwards
Actual Results:
Given
Regression:
N/A
Notes:
I’ll now scour the docs and probably end up using some kind of notification subscription … like an animal.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!