ContentMode
public enum ContentMode
Represents how a size adjusts itself to fit a target size.
- none: Not scale the content.
- aspectFit: Scales the content to fit the size of the view by maintaining the aspect ratio.
- aspectFill: Scales the content to fill the size of the view.
-
Not scale the content.
Declaration
Swift
case none
-
Scales the content to fit the size of the view by maintaining the aspect ratio.
Declaration
Swift
case aspectFit
-
Scales the content to fill the size of the view.
Declaration
Swift
case aspectFill