Custom container view controller can't notify of contained views of safe area to lay out
| Originator: | m.quinones.garcia | ||
| Number: | rdar://32661598 | Date Originated: | 08/06/2017 |
| Status: | Open | Resolved: | |
| Product: | UIKit | Product Version: | iOS 11 beta SDK |
| Classification: | Suggestion | Reproducible: |
Area: UIKit Summary: Currently the API In UIKit (as of iOS11) doesn't allow for custom container view controllers to notify contained views/viewcontrollers to layout or adjust insets. The properties just allow to turn settings off. The API 'safeAreaInsets' and `safeAreaLayoutGuide` in UIView is read-only, so custom containers are not able to set it to desired values based on the chrome it has. The new API for UIScrollView `frameLayoutGuide` is also read-only. Ideally the APIs would allow to implement behaviour similar to what UINavigationController and UITabbarController do. Steps to Reproduce: - Expected Results: - Observed Results: - Version: iOS 11 SDK (beta) Notes: - Configuration: -
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!