UIViewController

extension UIViewController
  • Set title and subtitle to titleView of UINavigationItem

    Declaration

    Swift

    public func setTitleView(_ title: String, subtitle: String? = nil, withPopover: Bool = false)

    Parameters

    title

    title for the titleView

    subtitle

    subtitle for the titleView; the default is nil.

    withPopover

    true to show the full title and subtitle in the popover once the titleView has been longpressed.