is there any way to changing/auto resizing the font size according to the different iPhone screen as when i change the font size, the font size applied to other phone size as well which is too big.
Asked
Active
Viewed 1.3k times
10
-
Check below link:- https://stackoverflow.com/a/53496831/5857254 Hope it helps :) – Pratyush Pratik Nov 27 '18 at 13:33
3 Answers
5
Please use size classes to support different font size for different screens. Here is good tutorial about using size classes. adaptive-layout-tutorial

Ganesh Amrule
- 407
- 2
- 12
-
this help a lot , i think this is worked for Xcode 7 but Xcode adaptive seems like to trait instead of size classes , i solved it , thanks Ganesh! – aznelite89 Sep 17 '16 at 09:58
4
I ran in to a similar issue. I suggest to use this library: https://github.com/hamiz-ahmed/SizeOptimizedLabel
Specify the initial screen and font size. The font gets optimized automatically according to different screen sizes.

Hamiz Ahmed
- 210
- 3
- 6
2
I faced this issue few months ago. There is no way to do it on storyboard for now.
You can do it by code by detect screen size or device type and set font size for each device. You can use this lib to do that

lee5783
- 434
- 4
- 12