Figured it out, I think. This seems to work:
ZStack {
Rectangle()
.foregroundStyle(.image(image, scale: mapImage.scale * mapZoom))
.offset(mapImage.offset)
.frame(width: scaledImageSize.width, height: scaledImageSize.height)
}
.frame(width: mapSize.width, height: mapSize.height)
.clipped()
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: