UINavigationBar

class UINavigationBar : UIView, NSCoding, UIBarPositioning

This extesion adds some useful functions to UINavigationBar.

  • Set the UINavigationBar to transparent or not.

    Declaration

    Swift

    public func setTransparent(_ transparent: Bool, translucent: Bool = true)

    Parameters

    transparent

    Set to true if trasparent, otherwise false.

    translucent

    A Boolean value indicating whether the navigation bar is translucent or not.