ButtonLayoutImage

public enum ButtonLayoutImage

The image that appears on the button.

  • Use the default image for the button type. (i.e. no image for .custom and .system, and the appropriate image for the other button types).

    Declaration

    Swift

    case defaultImage
  • Specify the size of the image that will be set on the UIButton at a later point (e.g. if you are loading the image from network).

    Declaration

    Swift

    case size(CGSize)
  • The image to set on the button for UIControlState.normal. You may configure the image for other states in the config block, but they should be the same size as this image.

    Declaration

    Swift

    case image(UIImage?)