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
|
||||
|
||||
@Proxy(\.model.fontSize)
|
||||
public var fontSize: VDSFontSize
|
||||
public var fontSize: FontSize
|
||||
|
||||
@Proxy(\.model.fontWeight)
|
||||
public var fontWeight: VDSFontWeight
|
||||
public var fontWeight: FontWeight
|
||||
|
||||
@Proxy(\.model.textPosition)
|
||||
public var textPosition: VDSTextPosition {
|
||||
public var textPosition: TextPosition {
|
||||
didSet {
|
||||
if oldValue != textPosition {
|
||||
updateLabel(model)
|
||||
|
||||
@ -17,7 +17,7 @@ public protocol ToggleModel: FormFieldable, DataTrackable, Accessable, Initable,
|
||||
}
|
||||
|
||||
extension ToggleModel {
|
||||
public var fontCategory: VDSFontCategory {
|
||||
public var fontCategory: FontCategory {
|
||||
get { return .body }
|
||||
set { return }
|
||||
}
|
||||
@ -42,10 +42,10 @@ public struct DefaultToggleModel: ToggleModel {
|
||||
public var offText: String = "Off"
|
||||
public var onText: String = "On"
|
||||
|
||||
public var fontCategory: VDSFontCategory = .body
|
||||
public var fontSize: VDSFontSize = .small
|
||||
public var fontWeight: VDSFontWeight = .regular
|
||||
public var textPosition: VDSTextPosition = .left
|
||||
public var fontCategory: FontCategory = .body
|
||||
public var fontSize: FontSize = .small
|
||||
public var fontWeight: FontWeight = .regular
|
||||
public var textPosition: TextPosition = .left
|
||||
|
||||
public var inputId: String?
|
||||
public var value: AnyHashable? = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user