scaledToFit

Scales this view to fit its parent.

View ModifieriOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+scaledToFit() in SwiftUI