Instance Method

imageScale(_:)

Set the image scale within self.

Declaration

func imageScale(_ scale: Image.Scale) -> some View

See Also

Scaling Views

func scaledToFill() -> View

Scales this view to fill its parent.

Beta
func scaledToFit() -> View

Scales this view to fit its parent.

Beta
func aspectRatio(CGFloat?, contentMode: ContentMode) -> View

Constrains this view’s dimensions to the specified aspect ratio.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software