resizable

Sets the mode by which SwiftUI resizes an image to fit its space.

Image ModifieriOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+resizable(capInsets:resizingMode:) in SwiftUI