TagListView
TagListView copied to clipboard
Custom tag views
This provides a fix for Issue #142. This moves the applying of default stylings from a factory method in TagListView
that's called in addTag(_:)
to a method that just handles styling and is called in addTagView(_:)
and insertTagView(_:at:)
. I also changed the implementation of addTagViews(_:)
to call out to addTagView(_:)
for each individual tag. Ultimately, this allows for the easy addition of custom subclasses to TagView
. I added documentation comments for each of the relevant methods to make it clear that they unconditionally apply the styling of the TagListView
that the TagView
/subclass is being added to, so any individual tag stylization should take place after calling addTagView(_:)
, addTagViews(_:)
, or insertTagView(_:at:)
👍 to the PR would love to see this one merged!
@anti-transmission when do you think it will be release? :)
I just pushed some commits to fix the previous merge conflicts with the latest master
branch, so I'd really love to see this get merged/released sometime soon (cc: @csvenja @Cee @xhacker @anti-transmission)