Image
public typealias Image = UIKit.UIImage
-
Mechanica
Initializes a
new
image object from a Base-64 encoded String.Declaration
Swift
public convenience init?(base64Encoded base64String: String)
Parameters
base64String
The string to parse.
-
Mechanica
Checks if the image has alpha component.
Declaration
Swift
public var hasAlpha: Bool { get }
-
Mechanica
Returns whether the image is opaque.
Declaration
Swift
public var isOpaque: Bool { get }
-
Mechanica
Convert the image to data.
Declaration
Swift
public var data: Data? { get }
-
Mechanica
Returns whether the image is inflated.
Declaration
Swift
public var isInflated: Bool { get set }
-
Mechanica
Inflates the underlying compressed image data to be backed by an uncompressed bitmap representation.
It allows a bitmap representation to be constructed in the background rather than on the main thread.
Note
Inflating compressed image formats (such as PNG or JPEG) in a background queue can significantly improve drawing performance on the main thread.Declaration
Swift
public func inflate()