FUITag
public class FUITag : FUITagText
FUITag displayed as a tag within FUIObjectHeaderView, FUIMapDetailTagObjectTableViewCell and FUITagView.
Usage
- Initializing programmatically:
let tag = FUITag(title: "Tag1")
-
Tag’s color scheme
Declaration
Swift
open var colorScheme: FUIBackgroundColorScheme { get set } -
Initialize an
FUITagobject that allows to set label text with an optional FUITagColorScheme appliedDeclaration
Swift
public init(title: String, colorScheme: FUIBackgroundColorScheme = .device)Parameters
titlelabel text
colorSchemeFUITagColorScheme applied to the label. Default to FUIBackgroundColorScheme.lightConstant
-
ExpressibleByStringLiteralinitializerRemark
Typically only used to initialize from string literal. Useinit(title:)to initialize fromString.Declaration
Swift
required public init(stringLiteral value: String)Parameters
valuestring value
-
Fill color of the tag
Declaration
Swift
@available(*, deprecated, message: "This property is deprecated. Please use 'fillColor' property.") public var backgroundColor: UIColor? { get }