ExpandedTitleView
@MainActor
open class ExpandedTitleView : UIView
扩展titleView,可继承,用于navigationItem.titleView需要撑开的场景
组件自动兼容各版本系统titleView左右间距(默认16),具体差异如下: iOS16+:系统titleView左右最小间距为16,组件默认处理为16 iOS15-:系统titleView左右最小间距为8,组件默认处理为16 注意:扩展区域不可点击,如需点击,可使用isPenetrable实现
-
指定内容视图并快速创建titleView
Declaration
Swift
@MainActor open class func titleView(_ contentView: UIView) -> Self
-
指定并添加内容视图,使用非等比例缩放布局
Declaration
Swift
@MainActor open weak var contentView: UIView? { get set }
-
导航栏内容间距,默认{0,16,0,16},超出区域不可点击
Declaration
Swift
@MainActor open var contentInset: UIEdgeInsets { get set }
-
指定frame并初始化,默认导航栏尺寸
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
解码初始化,默认导航栏尺寸
Declaration
Swift
@MainActor public required init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
@MainActor override open var intrinsicContentSize: CGSize { get }
-
Undocumented
Declaration
Swift
@MainActor override open func layoutSubviews()