UILabel

extension UILabel
  • Show a temporary status string in a label, replacing its current value. After some amount of time elapses, restore the label to the original content.

    Declaration

    Swift

    public func showStatus(_ status: String, duration: Double = 1.0)

    Parameters

    status

    the value to show

    duration

    the amount of time to show the status value