I want to create a list of tags, what I'll take from an array, but how can I stylize it as:
inside of bubbles and auto place in the next row if the line is full. Any tips or ideas?
If you want to use a view in code, declare an outlet for it and connect it. If you want to iterate over several views, create an array from your outlets or use a collection of outlets: @IBOutlet var buttons: [UIButton]! As an added bonus, now we can for in through these.
I have implemented a simple and customizable tag list view in swift using a collection view.
Here is my github link.
Please read this library link giving below it has awesome and custom tag design all the things you required for your design.
https://github.com/ElaWorkshop/TagListView
Here is how to use it.
yourView.addTag("Name on Tag") or yourView.addTags(["Name on Tag First","Name on Tag second","Name on tag third",.....and so on])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With