ThumbnailSize
@objc(SBDThumbnailSize)
public final class ThumbnailSize : NSObject, Codable
The ThumbnailSize
class represents the thumbnail size of thumbnail.
-
The max size of the thumbnail.
Declaration
Swift
@objc public private(set) var maxSize: CGSize { get }
-
Creates
ThumbnailSize
object withCGSize
.Declaration
Swift
@objc(makeWithMaxCGSize:) 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
@objc(makeWithMaxWidth:maxHeight:) 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