Post

Replies

Boosts

Views

Activity

Reply to iOS 26 Beta 3 `safeAreaInsets`
I moved the UIDevice.current.safeAreaInsets value into a constant to avoid using it directly in multiple places. Before: .padding(.bottom, UIDevice.current.safeAreaInsets.bottom) After: enum Constant { static let safeAreaInsets = UIDevice.current.safeAreaInsets } .padding(.bottom, Constant.safeAreaInsets.bottom)
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’25
Reply to iOS 26 Beta 3 `safeAreaInsets`
The issue is with iOS 26 on a project built with Xcode 16.4. I’m encountering a recursion loop specifically when trying to use the safeArea value — for example, for bottom padding .padding(.bottom, max(16, UIDevice.current.safeAreaInsets.bottom)) However, when I move a simplified version of the view into a test project, the problem disappears. So I’ll continue investigating what exactly is triggering the recursion in this specific case. I’ll also try building the project with xCode 26. It’s weird because everything was working fine on iOS26 Beta 2, and these weird freezes only started after updating the phone to Beta 3. Thanks for getting back to me!
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25