Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target to tagView + removeButton for delegate to work #194

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

radvansky-tomas
Copy link

Currently if you create tagView instances and add them to tagList, delegate does not work.

And even if you try to attach selectors by yourself, removeButton is private property and you are not allowed to do so.

So I've added missing methods to tagListView to behave same as you add tags with :String

@Cee Cee added the enhancement label Aug 1, 2018
@Cee
Copy link
Collaborator

Cee commented Aug 1, 2018

Would you like to add these methods in TagView.swift file?

@radvansky-tomas
Copy link
Author

Why there, there is no logical connection between TagView and TagListView in terms of delegation of events. On the other hand, what we should do is to make sure that onTap methods can be applied as well instead of delegate. So every TagView should have - onTap (whole cell), onRemoveTap (remove button) and longPress event...

@Cee Cee self-requested a review August 5, 2018 04:53
@Cee Cee self-assigned this Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants