FUITag
public class FUITag : FUITagText
FUITag
is an enhanced FUILabel
that applies Fiori Design tag color schemes to the label by default.
Usage
- Initializing programmatically:
let tag = FUITag(title: "Tag1")
- Placing inside a Storyboard or xib:
- Drag and drop an
UILabel
component to Interface Builder canvas. - Switch class name from
UILabel
toFUITag
, and set module toSAPFiori
.
-
Tag’s color scheme
Declaration
Swift
open var colorScheme: FUIBackgroundColorScheme { get set }
-
Initialize an
FUITag
object that allows to set label text with an optional FUITagColorScheme appliedDeclaration
Swift
public init(title: String, colorScheme: FUIBackgroundColorScheme = .device)
Parameters
title
label text
colorScheme
FUITagColorScheme applied to the label. Default to FUIBackgroundColorScheme.lightConstant
-
ExpressibleByStringLiteral
initializerRemark
Typically only used to initialize from string literal. Useinit(title:)
to initialize fromString
.Declaration
Swift
required public init(stringLiteral value: String)
Parameters
value
string value
-
Fill color of the tag
Declaration
Swift
@available(*, deprecated, message: "This property is deprecated. Please use 'fillColor' property.") public var backgroundColor: UIColor? { get }