updated toggle to include this and make a abstract class and new subclass Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
18 lines
297 B
Swift
18 lines
297 B
Swift
//
|
|
// Modelable.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 7/22/22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public let ModelStateDebounce = 0.02
|
|
|
|
public protocol Modelable {
|
|
associatedtype ModelType
|
|
var model: ModelType { get set }
|
|
init(with model: ModelType)
|
|
func set(with model: ModelType)
|
|
}
|