UINavigationBar

class UINavigationBar : UIView, NSCoding, UIBarPositioning
  • SwifterSwift: Set Navigation Bar title, title color and font.

    Declaration

    Swift

    public func setTitleFont(_ font: UIFont, color: UIColor = .black)

    Parameters

    font

    title font

    color

    title text color (default is .black).

  • SwifterSwift: Make navigation bar transparent.

    Declaration

    Swift

    public func makeTransparent(withTint tint: UIColor = .white)

    Parameters

    tint

    tint color (default is .white).

  • SwifterSwift: Set navigationBar background and text colors

    Declaration

    Swift

    public func setColors(background: UIColor, text: UIColor)

    Parameters

    background

    backgound color

    text

    text color