简体   繁体   中英

iOS Swift: How to make UILabel font size static (disregard of iOS setting font size change)?

How to make UILabel font size static (disregard of iOS setting font size change)?

That is to say, when user set their font size to be larger in their iPhone's accessibility font size, or change the view to Zoomed In size, how do I keep the UILabel font size to be static and not changing because of settings?

Thanks!

I found more comprehensive answers in this post:

Fixing the size of a custom font in SwiftUI iOS 13+ when ignoring Dynamic Type

As well as this nice article wrote in 2021:

https://useyourloaf.com/blog/restricting-dynamic-type-sizes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM