adding comments

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-09-08 17:27:26 -05:00
parent 12771fa0f2
commit 1129ac4468

View File

@ -43,6 +43,8 @@ extension ModelHandlerable {
}
}
public protocol ModelHandlerControlable<ModelType>: 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<ModelType>: ModelHandlerable, UIControl {}
public protocol ModelHandlerViewable<ModelType>: ModelHandlerable & UIView {}
public protocol ModelHandlerViewable<ModelType>: ModelHandlerable, UIView {}