I'm migrating some views from UIKit to SwiftUI.
In my UIKit interfaces, I frequently use the readableContentGuide property with Auto Layout to handle horizontal spacing across different screen sizes.
Is there an equivalent in SwiftUI?
I've been using .padding, but short of providing conditional numerical values for different devices, I haven't found a way to automatically make horizontal spacing adapt to different screen sizes to create naturally-readable spacing. Is this possible?
In my UIKit interfaces, I frequently use the readableContentGuide property with Auto Layout to handle horizontal spacing across different screen sizes.
Is there an equivalent in SwiftUI?
I've been using .padding, but short of providing conditional numerical values for different devices, I haven't found a way to automatically make horizontal spacing adapt to different screen sizes to create naturally-readable spacing. Is this possible?