Hello developers,
Now I'm facing a issue with a image alingment on watchOS app. As you see below, I load a UIImage on a view of watchOS app using SwiftUI and would like to fill the watch screen fully with the image. (That's why I added '.ignoreSafeAre()' modifier) As expected, the image fills the screen but the image is aligned to the left only in case of a landscape image (width > height). I tried anything I imagine, but all failed. Can anybody give a hint or advice to solve this issue? Many thanks in advance!
ZStack{
Image(uiImage: image)
.resizable()
.aspectRatio(contentMode: .fill)
.ignoresSafeArea()
.scaleEffect(zoom)
.offset(...)
.gesture(...
}