FUISegmentControl
open class FUISegmentControl : UISegmentedControl, FUIAttributedStringDrawing
A UISegmentedControl
subclass with Fiori styles.
Usage:
let segmentControl = FUISegmentControl(items: ["Segment 1", "Segment 2", "Segment 3"])
segmentControl.addTarget(self, action: #selector(selectionChange(segmentControl:)), for: .primaryActionTriggered)
Use segment control in a container with dark background
segmentControl.backgroundColorScheme = .darkConstant
Theming
fdlFUISegmentControl {
background-color (Color)
background-image { -selected | -highlighted | -disabled } (Image)
tint-color (Color)
selected-segment-tint-color (Color)
// The divider image to be used when both left and right segment are in normal state
divider-image (Image)
font-color { -selected | -highlighted | -disabled } (Color)
text-shadow-color { -selected | -highlighted | -disabled } (Color)
text-shadow-offset { -selected | -highlighted | -disabled } (Size)
font-name { -selected | -highlighted | -disabled } (FontName)
font-size { -selected | -highlighted | -disabled } (Size)
font-style { -selected | -highlighted | -disabled } (UIFont.TextStyle)
}
-
Declaration
Swift
public var backingPropertyValueMap: [FUIPropertyRef : NSAttributedString?]