From 74cbd6a2fe0c2f8be5942fbcd6f6717fe7657b7a Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 28 Jul 2022 18:07:02 -0500 Subject: [PATCH] udpated protocols Signed-off-by: Matt Bruce --- VDS/Protocols/FormFieldable.swift | 3 +-- VDS/Protocols/Modelable.swift | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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) }