ElaWorkshop / TagListView

Simple and highly customizable iOS tag list view, in Swift.
MIT License
2.63k stars 492 forks source link

Add minWidth property #275

Closed toshi0383 closed 3 years ago

toshi0383 commented 3 years ago

I needed, so added.

        biggestTagListView.addTags(["all", "your", "tag", "are", "belong", "to", "us"])
        biggestTagListView.minWidth = 57 // NEW
        biggestTagListView.alignment = .right
minWidth = 0 (default) minWidth = 57
スクリーンショット 2021-02-23 20 45 16 スクリーンショット 2021-02-23 20 44 07

There should be no effect for existing code on user side.

xhacker commented 3 years ago

Can you add some documentation in README?

toshi0383 commented 3 years ago

Updated README. If you like, I can update the IBDesignable screenshot, too. Just let me know.

スクリーンショット 2021-02-23 21 31 38