diff --git a/VDS/Protocols/FormFieldable.swift b/VDS/Protocols/FormFieldable.swift index 52deef7e..41017204 100644 --- a/VDS/Protocols/FormFieldable.swift +++ b/VDS/Protocols/FormFieldable.swift @@ -8,7 +8,6 @@ import Foundation public protocol FormFieldable { - associatedtype ValueType var inputId: String? { get set } - var value: ValueType? { get set } + var value: AnyHashable? { get set } } diff --git a/VDS/Protocols/Modelable.swift b/VDS/Protocols/Modelable.swift index 3920e9d9..2a9968f5 100644 --- a/VDS/Protocols/Modelable.swift +++ b/VDS/Protocols/Modelable.swift @@ -9,6 +9,6 @@ import Foundation public protocol Modelable { associatedtype ModelType - var model: ModelType? { get set } + var model: ModelType { get set } func set(with model: ModelType) }