UINavigationItem
extension UINavigationItem
-
Set
NSAttributedString
title and subtitle totitleView
of UINavigationItemDeclaration
Swift
public func setTitleView(_ attributedTitle: NSAttributedString, attributedSubtitle: NSAttributedString? = nil, withPopover: Bool = false)
Parameters
attributedTitle
NSAttributedString
title for thetitleView
attributedSubtitle
NSAttributedString
subtitle for thetitleView
; the default is nil.withPopover
true to show the full title and subtitle in popover once longpressed the
titleView
-
Set title and subtitle to
titleView
of UINavigationItemDeclaration
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 popover once longpressed the
titleView
-
The style class property. Setting this value applys the style.
Declaration
Swift
public var nuiClass: String? { get set }