added properties to label
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
64778d7951
commit
20622bef41
@ -23,21 +23,36 @@ open class LabelBase<ModelType: LabelModel & Initable>: UILabel, ModelHandlerabl
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
@Proxy(\.model.attributes)
|
||||||
|
open var attributes: [LabelAttributeModel]?
|
||||||
|
|
||||||
|
@Proxy(\.model.fontCategory)
|
||||||
|
open var fontCategory: FontCategory
|
||||||
|
|
||||||
@Proxy(\.model.fontSize)
|
@Proxy(\.model.fontSize)
|
||||||
public var fontSize: FontSize
|
open var fontSize: FontSize
|
||||||
|
|
||||||
@Proxy(\.model.textPosition)
|
|
||||||
public var textPosition: TextPosition
|
|
||||||
|
|
||||||
@Proxy(\.model.fontWeight)
|
@Proxy(\.model.fontWeight)
|
||||||
public var fontWeight: FontWeight
|
open var fontWeight: FontWeight
|
||||||
|
|
||||||
@Proxy(\.model.fontCategory)
|
@Proxy(\.model.textPosition)
|
||||||
public var fontCategory: FontCategory
|
open var textPosition: TextPosition
|
||||||
|
|
||||||
@Proxy(\.model.surface)
|
@Proxy(\.model.surface)
|
||||||
public var surface: Surface
|
open var surface: Surface
|
||||||
|
|
||||||
|
@Proxy(\.model.disabled)
|
||||||
|
open var disabled: Bool
|
||||||
|
|
||||||
|
//can't use @Proxy here
|
||||||
|
override open var text: String? {
|
||||||
|
didSet {
|
||||||
|
if model.text != oldValue {
|
||||||
|
model.text = text
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user