BLTNItemAppearance
@objc
public class BLTNItemAppearance : NSObject
An object that defines the appearance of bulletin items.
-
The tint color to apply to the action button (default
.link
on iOS 13 and.blue
on older systems).Declaration
Swift
@objc public var actionButtonColor: UIColor
-
The button image to apply to the action button
Declaration
Swift
@objc public var actionButtonImage: UIImage?
-
The title color to apply to action button (default white).
Declaration
Swift
@objc public var actionButtonTitleColor: UIColor
-
The border color to apply to action button.
Declaration
Swift
@objc public var actionButtonBorderColor: UIColor?
-
The border width to apply to action button.
Declaration
Swift
@objc public var actionButtonBorderWidth: CGFloat
-
The title color to apply to the alternative button (default
.link
on iOS 13 and.blue
on older systems).Declaration
Swift
@objc public var alternativeButtonTitleColor: UIColor
-
The border color to apply to the alternative button.
Declaration
Swift
@objc public var alternativeButtonBorderColor: UIColor?
-
The border width to apply to the alternative button.
Declaration
Swift
@objc public var alternativeButtonBorderWidth: CGFloat
-
The tint color to apply to the imageView (if image rendered in template mode, default
.link
on iOS 13 and.blue
on older systems).Declaration
Swift
@objc public var imageViewTintColor: UIColor
-
The color of title text labels (default
.secondaryLabel
on iOS 13 and light gray on older systems).Declaration
Swift
@objc public var titleTextColor: UIColor
-
The color of description text labels (default
.label
on iOS 13 and black on older systems).Declaration
Swift
@objc public var descriptionTextColor: UIColor
-
The corner radius of the action button (default 12).
Declaration
Swift
@objc public var actionButtonCornerRadius: CGFloat
-
The corner radius of the alternative button (default 12).
Declaration
Swift
@objc public var alternativeButtonCornerRadius: CGFloat
-
An optional custom font to use for the title label. Set this to nil to use the system font.
Declaration
Swift
@objc public var titleFontDescriptor: UIFontDescriptor?
-
An optional custom font to use for the description label. Set this to nil to use the system font.
Declaration
Swift
@objc public var descriptionFontDescriptor: UIFontDescriptor?
-
An optional custom font to use for the buttons. Set this to nil to use the system font.
Declaration
Swift
@objc public var buttonFontDescriptor: UIFontDescriptor?
-
Whether the description text should be displayed with a smaller font.
You should set this to
true
if your text is long (more that two sentences).Declaration
Swift
@objc public var shouldUseCompactDescriptionText: Bool
-
The font size of title elements (default 30).
Declaration
Swift
@objc public var titleFontSize: CGFloat
-
The font size of description labels (default 20).
Declaration
Swift
@objc public var descriptionFontSize: CGFloat
-
The font size of compact description labels (default 15).
Declaration
Swift
@objc public var compactDescriptionFontSize: CGFloat
-
The font size of action buttons (default 17).
Declaration
Swift
@objc public var actionButtonFontSize: CGFloat
-
The font size of alternative buttons (default 15).
Declaration
Swift
@objc public var alternativeButtonFontSize: CGFloat
-
Creates the font for title labels.
Declaration
Swift
@objc public func makeTitleFont() -> UIFont
-
Creates the font for description labels.
Declaration
Swift
@objc public func makeDescriptionFont() -> UIFont
-
Creates the font for action buttons.
Declaration
Swift
@objc public func makeActionButtonFont() -> UIFont
-
Creates the font for alternative buttons.
Declaration
Swift
@objc public func makeAlternativeButtonFont() -> UIFont