TitleContainerView
A view that displays a title label and subtitle in a container stack view.
open class TitleContainerView: _View, AppearanceProvider, SwiftUIRepresentable
Inheritance
_View
, SwiftUIRepresentable
, AppearanceProvider
Properties
content
Content of the view that contains title (first line) and subtitle (second nil)
open var content: (title: String?, subtitle: String?) = (nil, nil)
titleLabel
Label that represents the first line of the view
open private(set) lazy var titleLabel: UILabel = UILabel()
.withBidirectionalLanguagesSupport
.withAdjustingFontForContentSizeCategory
subtitleLabel
Label that represents the second line of the view
open private(set) lazy var subtitleLabel: UILabel = UILabel()
.withBidirectionalLanguagesSupport
.withAdjustingFontForContentSizeCategory
containerView
A view that acts as the main container for the subviews
open private(set) lazy var containerView: ContainerStackView = ContainerStackView()
.withoutAutoresizingMaskConstraints
Methods
setUpAppearance()
override open func setUpAppearance()
setUp()
override open func setUp()
setUpLayout()
override open func setUpLayout()
updateContent()
override open func updateContent()