ASAPPCustomImage
@objc(ASAPPCustomImage)
@objcMembers
public class ASAPPCustomImage : NSObject
Used to define an icon for a button.
-
The button image.
Declaration
Swift
public var image: UIImage -
The size of the image.
Declaration
Swift
public var size: CGSize -
The insets of the button.
Declaration
Swift
public var insets: UIEdgeInsets
-
Creates an instance of
ASAPPCustomImagewith the given parameters.Declaration
Swift
public init(image: UIImage, size: CGSize, insets: UIEdgeInsets = UIEdgeInsets(top: 4, left: 0, bottom: 4, right: 0))Parameters
imageThe button image.
sizeThe size of the image.
insetsThe button insets. Optional.
ASAPPCustomImage Class Reference