Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中英文超出宽度的展示问题 #122

Closed
Linkknil opened this issue Jan 27, 2022 · 1 comment
Closed

中英文超出宽度的展示问题 #122

Linkknil opened this issue Jan 27, 2022 · 1 comment

Comments

@Linkknil
Copy link

超过长度

你好,通过使用过程中发现如果有中英混合,那么即使设置了tagview的 UIEdgeInsets,那么具体还是显示不对

let normalStyle = TTGTextTagStyle.init()
normalStyle.backgroundColor = emptyBackground
normalStyle.extraSpace = CGSize.init(width: 24, height: 12)
normalStyle.cornerRadius = 16
normalStyle.borderWidth = 0
normalStyle.shadowColor = UIColor.clear

let selectedStyle = TTGTextTagStyle.init()
selectedStyle.backgroundColor = background3
selectedStyle.extraSpace = CGSize.init(width: 24, height: 12)
selectedStyle.cornerRadius = 16
selectedStyle.borderWidth = 0
selectedStyle.shadowColor = UIColor.clear
@zekunyan
Copy link
Owner

默认就是这样的,不管中英文,要支持换行要自己定制

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants