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 {}