UIView not created properly when frame is CGRect.zero in Playground
| Originator: | ornithocoder | ||
| Number: | rdar://27272713 | Date Originated: | 11-Jul-2016 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: | Always |
Playground is not able to display an UIView that was initially created with frame zero (CGRect.zero) and changed afterwards. Steps to Reproduce: 1. Create an UIView with CGRect.zero frame 2. Change the view frame 3. Try do something with the frame (change its color, add a subview, etc...) 4. View will be in unusable state (Playground won't display it). Expected Results: The view should behave as expected and Playground should display the view. It should work as when the same piece code runs on iOS and macOS. Actual Results: Currently, it creates a view in a weird state that cannot be rendered.
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!