PlanetKitUIViewContentMode
@objc
@frozen
public enum PlanetKitUIViewContentMode : Int
An enumeration that represents the content mode for a PlanetKitUIView.
-
The content is scaled to fill the view’s bounds.
Declaration
Swift
case scaleToFill = 0
-
The content is scaled to fit the view’s bounds while maintaining the aspect ratio.
Declaration
Swift
case scaleAspectFit = 1
-
The content is scaled to fill the view’s bounds while maintaining the aspect ratio. Some portion of the content may be clipped.
Declaration
Swift
case scaleAspectFill = 2