TTGTagCollectionView icon indicating copy to clipboard operation
TTGTagCollectionView copied to clipboard

How to add multiline support for a text in a tag.

Open rohita-personatech opened this issue 2 years ago • 6 comments

How to add multiline support for a text in a tag.

rohita-personatech avatar Aug 27 '21 06:08 rohita-personatech

@rohita-personatech Set maxWidth in TTGTextTagStyle

zekunyan avatar Aug 30 '21 09:08 zekunyan

@zekunyan It's not working for me, I set maxWidth and maxHeight to 0 still text is not expanding to multi lines. Any guide. thanks

barkiiqbal avatar Feb 21 '22 15:02 barkiiqbal

@barkiiqbal Supporting multiline will mess up the current design. You can make you own "Text Tag View" based on TTGTagCollectionView from the bottom.

zekunyan avatar Feb 22 '22 02:02 zekunyan

@zekunyan Multiline is not working for me also.

haiderTkxel avatar Feb 22 '22 06:02 haiderTkxel

@zekunyan Can you add numberOfLines to the style for the label?

iamsenzy avatar Apr 06 '22 15:04 iamsenzy

The numberOfLines needs maxWidth at the same time. And it will be very strange when each text tag has different height in each row...

zekunyan avatar Apr 07 '22 02:04 zekunyan