From 1129ac44689f8b1599f35cae77b9e9c8acc738c8 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 8 Sep 2022 17:27:26 -0500 Subject: [PATCH] adding comments Signed-off-by: Matt Bruce --- VDS/Protocols/ModelHandlerable.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VDS/Protocols/ModelHandlerable.swift b/VDS/Protocols/ModelHandlerable.swift index be96bbd4..e6c03c83 100644 --- a/VDS/Protocols/ModelHandlerable.swift +++ b/VDS/Protocols/ModelHandlerable.swift @@ -43,6 +43,8 @@ extension ModelHandlerable { } } -public protocol ModelHandlerControlable: ModelHandlerable & UIControl {} +//enforment of a specific class, helps later with subclassing using generics +//https://sarunw.com/posts/how-to-declare-swift-protocol-for-specific-class/ +public protocol ModelHandlerControlable: ModelHandlerable, UIControl {} -public protocol ModelHandlerViewable: ModelHandlerable & UIView {} +public protocol ModelHandlerViewable: ModelHandlerable, UIView {}