ElaWorkshop / TagListView

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

Resize tagsView to fit content #256

Open ytpm opened 4 years ago

ytpm commented 4 years ago

I have a specific tagView height, but when I add tags instead of increase the height, the tags are getting out of the view's frame.

Screen Shot 2020-04-27 at 18 23 30

How do I make it to fit it's content?

scubax07 commented 3 years ago

Hey, did you solve this issue. Please let me know if you did. Cheers.

scubax07 commented 3 years ago

Hey, did you solve this issue. Please let me know if you did. Cheers.

tagListHeightConstraint.constant = self.tagList.intrinsicContentSize.height tagListHeightConstraint is assigned from storyboard.

khanskt786 commented 3 years ago

@yositsa Set your taglist height constraint's priority to 250, your tagList will increase in size automatically after this

SunnyJ-CN commented 2 years ago

@yositsa Set your taglist height constraint's priority to 250, your tagList will increase in size automatically after this

thank you bro, works perfectly