UIButton
extension UIButton: ImageService
-
Conform UIButton to ImageService
Declaration
Swift
open func nuke_display(image: PlatformImage?)Parameters
imageimage to display
-
Set tint color of image according to selection
Declaration
Swift
func set(tintedSelection: Bool, tint: UIColor = .azureRadiance)Parameters
tintedSelectionSelection
tintColor
-
Set gap between icon and title in button
Declaration
Swift
func setInsets(gap: CGFloat, content padding: UIEdgeInsets? = nil)Parameters
gapBetween icon and title
paddingOptionally replace current content insets
-
Center image and label
Declaration
Swift
func centerImageAndLabel(gap: CGFloat, imageOnTop: Bool = true)Parameters
gapPixels between image and label
imageOnTopVertical or not
View on GitHub
UIButton Extension Reference