UIButton

public extension UIButton
  • Set the titleColor for a UIControl State

    Declaration

    Swift

    @discardableResult
    func set(
        titleColor: UIColor?,
        forState state: UIControl.State = .normal
    ) -> Self

    Parameters

    titleColor

    A color for the title

    forState

    The UIControl State for the titleColor (Default: .normal)