Skip to content

Instantly share code, notes, and snippets.

@Oni-zerone
Created December 11, 2018 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Oni-zerone/80bd73c45483c2c18b3d2ce31ad85de5 to your computer and use it in GitHub Desktop.
Save Oni-zerone/80bd73c45483c2c18b3d2ce31ad85de5 to your computer and use it in GitHub Desktop.
The interactionDelegate protocol of PowerTools
public protocol InteractionDelegate: class {
func containerView(_ containerView: UIView, shouldSelect item: ItemViewModel) -> Bool
func containerView(_ containerView: UIView, didSelect item: ItemViewModel)
func containerView(_ containerView: UIView, shouldDeselect item: ItemViewModel) -> Bool
func containerView(_ containerView: UIView, didDeselect item: ItemViewModel)
func containerView(_ containerView: UIView, shouldHighlight item: ItemViewModel) -> Bool
func containerView(_ containerView: UIView, didHighlight item: ItemViewModel)
func containerView(_ containerView: UIView, didUnhighlight item: ItemViewModel)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment