Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 + iOS 17 adds extra padding to widgets
Hi! I just want to update this post and let you know the currently selected solution is outdated. On the latest Xcode 15 beta (4), and latest iOS 17 beta (4), using the .contentMarginsDisabled() modifier will compile the widget and automatically do nothing if running on a device below iOS 17. https://developer.apple.com/documentation/swiftui/widgetconfiguration/contentmarginsdisabled() As per Apple documentation, this modifier now has no effect on prior operating systems.
Jul ’23