ThumbnailSize
public final class ThumbnailSize: NSObject, Codable
The ThumbnailSize class represents the thumbnail size of thumbnail.
-
The max size of the thumbnail.
Declaration
Swift
public private(set) var maxSize: CGSize = .zero -
Creates
ThumbnailSizeobject withCGSize.Declaration
Swift
public static func make(maxSize: CGSize) -> ThumbnailSizeParameters
maxSizeThe max size of the thumbnail.
Return Value
ThumbnailSizeobject. -
Makes
ThumbnailSizeobject with width and height.Declaration
Swift
public static func make(maxWidth: CGFloat, maxHeight: CGFloat) -> ThumbnailSizeParameters
maxWidthThe max width of the thumbnail.
maxHeightThe max height of the thumbnail.
Return Value
ThumbnailSizeobject. -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderEncoderinstance -
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throwsParameters
decoderDecoderinstance
View on GitHub
Install in Dash