Sets the scale of images inside the view.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
- Xcode 11.0+
Framework
- Swift
UI
Sets the scale of images inside the view.
SDKs
Framework
func scaled To Fill() -> View
Scales the view to fill its parent.
func scaled To Fit() -> View
Scales the view to fit its parent.
func scale Effect(CGFloat, anchor: Unit Point) -> View
Scales this view’s rendered output by the given amount in both the horizontal and vertical directions, relative to an anchor point.
func scale Effect(CGSize, anchor: Unit Point) -> View
Scales this view’s rendered output by the given vertical and horizontal size amounts, relative to an anchor point.
func scale Effect(x: CGFloat, y: CGFloat, anchor: Unit Point) -> View
Scales this view’s rendered output by the given horizontal and vertical amounts, relative to an anchor point.
func aspect Ratio(CGFloat?, content Mode: Content Mode) -> View
Constrains the view’s dimensions to the specified aspect ratio.
func aspect Ratio(CGSize, content Mode: Content Mode) -> View
Constrains the view’s dimensions to the aspect ratio of the specified size.