BaseUISegmentedControl
open class BaseUISegmentedControl: UISegmentedControl, BaseView
BaseUISegmentedControl is a subclass of UISegmentedControl and implements BaseView. It has some extra proporties and support for SyncEngine.
-
Flag for whether to resize the values for iPad.
Declaration
Swift
@IBInspectable open var sizeForIPad:Bool = false; -
Background color key from Sync Engine.
Declaration
Swift
@IBInspectable open var bgColorStyle:String? = nil -
Navigation tint Color key from SyncEngine.
Declaration
Swift
@IBInspectable open var tintColorStyle:String? -
Font name key from Sync Engine.
Declaration
Swift
@IBInspectable open var fontName:String = "fontRegular" -
Font size/style key from Sync Engine.
Declaration
Swift
@IBInspectable open var fontStyle:String = "medium" -
Extended proprty font for Segmented Controler Items
Declaration
Swift
open var font:UIFont? = nil -
Overridden constructor to setup/ initialize components.
Parameter
Parameter items: Segment ItemsDeclaration
Swift
public override init(items: [Any]?)Parameters
itemsSegment Items
-
Overridden constructor to setup/ initialize components.
Parameter
Parameter frame: View frameDeclaration
Swift
public override init(frame: CGRect)Parameters
frameView frame
-
Required constructor implemented.
Declaration
Swift
required public init?(coder aDecoder: NSCoder) -
Overridden method to setup/ initialize components.
Declaration
Swift
override open func awakeFromNib() -
Overridden method to set title using Sync Engine key (Hint ’#’).
- Parameters:
- title: Segment Title
- segment: Segment Index
Declaration
Swift
override open func setTitle(_ title: String?, forSegmentAt segment: Int)Parameters
titleSegment Title
segmentSegment Index
- Parameters:
View on GitHub
BaseUISegmentedControl Class Reference