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

Always correct gradient text in UIKit #4549

Closed
Kyle-Ye opened this issue May 14, 2024 · 1 comment
Closed

Always correct gradient text in UIKit #4549

Kyle-Ye opened this issue May 14, 2024 · 1 comment
Assignees

Comments

@Kyle-Ye
Copy link
Collaborator

Kyle-Ye commented May 14, 2024

推荐收录

链接

https://nemecek.be/blog/143/always-correct-gradient-text-in-uikit

理由

Gradient -> UIImage -> UIColor

推荐人信息

如果收录这个资源,我们会在点评后面说明推荐信息人。

@ChengzhiHuang
Copy link
Collaborator

看完了,最后 UIStackView 的 layoutSubviews 里面最好根据 bounds 是否改变做一下缓存,不然计算可能会非常频繁。

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

3 participants