iOS - Tapping status bar create empty space below large title
Originator: | lenooreis | ||
Number: | rdar://FB9843766 | Date Originated: | 2022-01-13 |
Status: | Open | Resolved: | No |
Product: | UIKit | Product Version: | iOS 15 SDK |
Classification: | Bug | Reproducible: | Yes |
The hierarchy: UINavigationController > UIViewController [modalPresentationStyle=.pageSheet] with large title > UIScrollView > Very large label to make scrollview scrollable. When I scroll down a little and then tap into status bar to scroll to top it create extra empty space below the large title. That problem seems to be fixed when viewController.edgesForExtendedLayout = [] is used, but it leads to another weird problem. Before this change, when I scroll to the top and scroll down, it makes the title larger and then scroll the entire view to down to dismiss it, now when I scroll down the title doesn't get bigger, please see attached images & videos. Normal space https://i.stack.imgur.com/amgFN.png Unwanted space https://i.stack.imgur.com/ohOAT.png Video: https://imgur.com/a/ESuFr8B Github Code: https://github.com/soujohnreis/statusbar-scrolltop-largetitle-problem Video with viewController.edgesForExtendedLayout: https://imgur.com/a/Xz3Bueu Image with viewController.edgesForExtendedLayout: https://i.stack.imgur.com/U8E67.png
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!