iOS 17 has a new Stand by mode so SwiftUI introduces containerBackground for the system to decide when to draw background. It also automatically applies margin to widget so we may need to disable that
To update existing widgets, we can write some useful extension
iOS 17 has a new Stand by mode so SwiftUI introduces
containerBackground
for the system to decide when to draw background. It also automatically applies margin to widget so we may need to disable thatTo update existing widgets, we can write some useful extension
So in our
Widget
configuration, we can use