ASAPPCustomImage

@objc(ASAPPCustomImage)
@objcMembers
public class ASAPPCustomImage : NSObject

Used to define an icon for a button.

Properties

  • 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

Init

  • Creates an instance of ASAPPCustomImage with the given parameters.

    Declaration

    Swift

    public init(image: UIImage, size: CGSize, insets: UIEdgeInsets = UIEdgeInsets(top: 4, left: 0, bottom: 4, right: 0))

    Parameters

    image

    The button image.

    size

    The size of the image.

    insets

    The button insets. Optional.