PULoadingButton

@IBDesignable
open class PULoadingButton : PUButton, PUXIBLocalizable

PowerUpSwift: The subclass of PUButton that allows the editing of additional UIKit properties via the Interface Builder.

Inspectables

  • PowerUpSwift: The opacity when the loading indicator is currently shown. Defaults to 0.5.

    Declaration

    Swift

    @IBInspectable
    open var disabledAlpha: CGFloat

Custom Functions

  • PowerUpSwift: Displays the loading indicator to the center of the button and temporarily hides the button’s title.

    Declaration

    Swift

    open func showLoading()
  • PowerUpSwift: Hides the loading indicator from the center of the button and displays the button’s title back.

    Declaration

    Swift

    open func hideLoading()