我知道在iOS中,可以使用可访问性更改设备的字体大小
https://support.apple.com/en-gb/HT202828
如何以编程方式找到“可访问性”中设置的文本大小?
请求任何视图控制器或视图的 traitCollection . 问题的背景是 preferredContentSizeCategory .
traitCollection
preferredContentSizeCategory
https://developer.apple.com/documentation/uikit/uitraitcollection/1771746-preferredcontentsizecategory