ContentMode
@objc
public enum ContentMode : Int
-
Media scaled to fill the space. Distortion may occur.
Declaration
Swift
case contentFill -
Media scaled to fit the space while maintaining the media’s original aspect ratio.
Declaration
Swift
case contentAspectFit -
Media scaled to fill the space while maintaining the media’s original aspect ratio. A portion of the media may be clipped or spill out of the space.
Declaration
Swift
case contentAspectFill
View on GitHub
ContentMode Enumeration Reference