UIButton
extension UIButton: ImageService
-
Conform UIButton to ImageService
Declaration
Swift
open func nuke_display(image: PlatformImage?)
Parameters
image
image to display
-
Set tint color of image according to selection
Declaration
Swift
func set(tintedSelection: Bool, tint: UIColor = .azureRadiance)
Parameters
tintedSelection
Selection
tint
Color
-
Set gap between icon and title in button
Declaration
Swift
func setInsets(gap: CGFloat, content padding: UIEdgeInsets? = nil)
Parameters
gap
Between icon and title
padding
Optionally replace current content insets
-
Center image and label
Declaration
Swift
func centerImageAndLabel(gap: CGFloat, imageOnTop: Bool = true)
Parameters
gap
Pixels between image and label
imageOnTop
Vertical or not