updated for renaming
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
789699cbf4
commit
0391962ac7
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
import MVMCoreUI
|
import MVMCoreUI
|
||||||
import VDS
|
|
||||||
|
|
||||||
@UIApplicationMain
|
@UIApplicationMain
|
||||||
class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate {
|
class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate {
|
||||||
|
|||||||
@ -68,7 +68,7 @@ extension VDSFontWeight {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension VDSToggle {
|
extension Toggle {
|
||||||
public enum DefaultOffText: DecodableDefault.Source {
|
public enum DefaultOffText: DecodableDefault.Source {
|
||||||
public static var defaultValue: String { "Off" }
|
public static var defaultValue: String { "Off" }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,14 +23,14 @@ extension MoleculeViewProtocol {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension Modelable where Self: MoleculeViewProtocol {
|
extension ModelHandlerable where Self: MoleculeViewProtocol {
|
||||||
public init(model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
|
public init(model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?) {
|
||||||
self.init(with: model as! ModelType)
|
self.init(with: model as! ModelType)
|
||||||
self.set(with: model, delegateObject, additionalData)
|
self.set(with: model, delegateObject, additionalData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open class TestToggle: VDSToggleBase<TestToggleModel>, MoleculeViewProtocol, MVMCoreViewProtocol {
|
open class TestToggle: ToggleBase<TestToggleModel>, MoleculeViewProtocol, MVMCoreViewProtocol {
|
||||||
|
|
||||||
/// The state on the toggle. Default value: false.
|
/// The state on the toggle. Default value: false.
|
||||||
open override var isOn: Bool {
|
open override var isOn: Bool {
|
||||||
@ -59,6 +59,15 @@ open class TestToggle: VDSToggleBase<TestToggleModel>, MoleculeViewProtocol, MVM
|
|||||||
onModelChange(model: viewModel)
|
onModelChange(model: viewModel)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override open func setup() {
|
||||||
|
super.setup()
|
||||||
|
self.setupView()
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK:- MVMCoreViewProtocol
|
||||||
|
public func updateView(_ size: CGFloat) {}
|
||||||
|
public func setupView() {}
|
||||||
|
|
||||||
// MARK:- MoleculeViewProtocol
|
// MARK:- MoleculeViewProtocol
|
||||||
public func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
|
public func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import MVMCoreUI
|
|||||||
import VDS
|
import VDS
|
||||||
|
|
||||||
//MARK: - Model
|
//MARK: - Model
|
||||||
public class TestToggleModel: MoleculeModelProtocol, FormFieldProtocol, VDSToggleModel {
|
public class TestToggleModel: MoleculeModelProtocol, FormFieldProtocol, VDS.ToggleModel {
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user