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.
Post
Replies
Boosts
Views
Activity
Hey, did you find a working solution?
Haha I am under the same dilemma. Please let me know what option you decided to tick. I am also an independent developer.
Same problem.