UINavigationController

class UINavigationController : UIViewController
  • Sets the navigation bar to be transparent.

    Declaration

    Swift

    public func transparentNavigationBar(barStyle: UIBarStyle = .default)

    Parameters

    barStyle

    Bar style to set.

  • Sets the navigation bar

    Declaration

    Swift

    public func setNavigationBar(backgroundColor: UIColor? = nil, tintColor: UIColor? = nil, textStyle: TextStyle? = nil)

    Parameters

    backgroundColor

    Background color.

    tintColor

    Navigation items tint color.

    textStyle

    Text style for title.

  • Removes the navigation bar border

    Declaration

    Swift

    public func removeNavigationBarBorder()
  • Adds a drop shadow to navigation bar.

    Declaration

    Swift

    public func addDropShadow(color: UIColor = .clear, offset: CGSize = .zero, radius: CGFloat = 0, opacity: Float = 0)

    Parameters

    color

    Drop shadow color. Defaults to black.

    offset

    Shadow offset.

    radius

    Shadow radius.

    opacity

    Shadow opacity.