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
ThumbnailSize
object withCGSize
.Declaration
Swift
public static func make(maxSize: CGSize) -> ThumbnailSize
Parameters
maxSize
The max size of the thumbnail.
Return Value
ThumbnailSize
object. -
Makes
ThumbnailSize
object with width and height.Declaration
Swift
public static func make(maxWidth: CGFloat, maxHeight: CGFloat) -> ThumbnailSize
Parameters
maxWidth
The max width of the thumbnail.
maxHeight
The max height of the thumbnail.
Return Value
ThumbnailSize
object. -
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
Encoder
instance -
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throws
Parameters
decoder
Decoder
instance