FUITag
open class FUITag : FUILabel
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
.
-
Fiori Design style color scheme for tag
See moreDeclaration
Swift
public enum FUITagColorScheme: Int
-
Tag’s color scheme
Declaration
Swift
open var colorScheme: FUITagColorScheme
-
Initialize an
FUITag
object that allows to set label text with an optional FUITagColorScheme applied - parameter title: label text - parameter colorScheme: FUITagColorScheme applied to the label. Default to FUITagColorScheme.darkBackgroundDeclaration
Swift
public init(title: String, colorScheme: FUITagColorScheme = .darkBackground)
Parameters
title
label text
colorScheme
FUITagColorScheme applied to the label. Default to FUITagColorScheme.darkBackground