refactored names
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
b993952e30
commit
cff23c26e4
@ -83,13 +83,13 @@ open class ToggleBase<ModelType: ToggleModel>: Control<ModelType>, Changable {
|
|||||||
public var offText: String
|
public var offText: String
|
||||||
|
|
||||||
@Proxy(\.model.fontSize)
|
@Proxy(\.model.fontSize)
|
||||||
public var fontSize: VDSFontSize
|
public var fontSize: FontSize
|
||||||
|
|
||||||
@Proxy(\.model.fontWeight)
|
@Proxy(\.model.fontWeight)
|
||||||
public var fontWeight: VDSFontWeight
|
public var fontWeight: FontWeight
|
||||||
|
|
||||||
@Proxy(\.model.textPosition)
|
@Proxy(\.model.textPosition)
|
||||||
public var textPosition: VDSTextPosition {
|
public var textPosition: TextPosition {
|
||||||
didSet {
|
didSet {
|
||||||
if oldValue != textPosition {
|
if oldValue != textPosition {
|
||||||
updateLabel(model)
|
updateLabel(model)
|
||||||
|
|||||||
@ -17,7 +17,7 @@ public protocol ToggleModel: FormFieldable, DataTrackable, Accessable, Initable,
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension ToggleModel {
|
extension ToggleModel {
|
||||||
public var fontCategory: VDSFontCategory {
|
public var fontCategory: FontCategory {
|
||||||
get { return .body }
|
get { return .body }
|
||||||
set { return }
|
set { return }
|
||||||
}
|
}
|
||||||
@ -42,10 +42,10 @@ public struct DefaultToggleModel: ToggleModel {
|
|||||||
public var offText: String = "Off"
|
public var offText: String = "Off"
|
||||||
public var onText: String = "On"
|
public var onText: String = "On"
|
||||||
|
|
||||||
public var fontCategory: VDSFontCategory = .body
|
public var fontCategory: FontCategory = .body
|
||||||
public var fontSize: VDSFontSize = .small
|
public var fontSize: FontSize = .small
|
||||||
public var fontWeight: VDSFontWeight = .regular
|
public var fontWeight: FontWeight = .regular
|
||||||
public var textPosition: VDSTextPosition = .left
|
public var textPosition: TextPosition = .left
|
||||||
|
|
||||||
public var inputId: String?
|
public var inputId: String?
|
||||||
public var value: AnyHashable? = true
|
public var value: AnyHashable? = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user