zekunyan / TTGTagCollectionView

Useful for showing text or custom view tags in a vertical or horizontal scrollable view and support Autolayout at the same time. It is highly customizable that most features of the text tag can be configured. 标签流显示控件,同时支持文字或自定义View
http://tutuge.me
MIT License
1.89k stars 260 forks source link

Horizontal two lines is not performing as expected #131

Closed krutikazoodmall closed 2 years ago

krutikazoodmall commented 2 years ago

even though I have added numberOfLines and countPerSection parameters, it is not displaying multiple lines for horizontal mode.

tagView.scrollDirection = .horizontal tagView.numberOfLines = 2 tagView.selectionLimit = 10

I need two lines .. each having maximum 10 tags

Screenshot 2022-09-13 at 11 28 35 AM
zekunyan commented 2 years ago

Can you provide the whole Demo code ?

krutikazoodmall commented 2 years ago

ViewController.swift.zip

zekunyan commented 2 years ago

I don't have this problem.

image

krutikazoodmall commented 2 years ago

this is vertical. I need horizontal.

zekunyan commented 2 years ago

The new version 2.2.0 fix this problem.