UINavigationItem
extension UINavigationItem
-
Set
NSAttributedStringtitle and subtitle totitleViewof UINavigationItemDeclaration
Swift
@MainActor public func setTitleView(_ attributedTitle: NSAttributedString, attributedSubtitle: NSAttributedString? = nil, withPopover: Bool = false)Parameters
attributedTitleNSAttributedStringtitle for thetitleViewattributedSubtitleNSAttributedStringsubtitle for thetitleView; the default is nil.withPopovertrue to show the full title and subtitle in popover once longpressed the
titleView -
Set title and subtitle to
titleViewof UINavigationItemDeclaration
Swift
@MainActor public func setTitleView(_ title: String, subtitle: String? = nil, withPopover: Bool = false)Parameters
titletitle for the
titleViewsubtitlesubtitle for the
titleView; the default is nil.withPopovertrue 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
@MainActor public var nuiClass: String? { get set }