Post

Replies

Boosts

Views

Activity

ScrollView bottom goes underneath Tab Bar in iOS 17.2
My iOS SwiftUI application is based on TabView, and several of the tabs have a ScrollView in them. Everything is fine in iOS 17.0, but in 17.2 or later I have a bug where the ScrollView extends past the top of the Tab Bar on the bottom, so I cannot see the last item in my ScollView. I tested this by drawing a border around the ScrollView; in iOS 17.0 I see a nice bottom border where the ScrollView meets that Tab Bar; on iOS 17.2, I only see three sides of the border and the bottom is clearly beneath the Tab Bar. Are there some changes to either of these views I should be aware of, or an existing bug I have to work around? This is making me long for the days of autolayout constraints. My understanding is that the Tab Bar height differs on different size phones as well, and querying the Tab bar for its height seems like a hack.
0
0
239
Apr ’24