Creating a great user experience lies in making every interaction feel nature and intended to the user.
In a recent project, to make interactions feel more catered, I needed a UILabel to have it’s text scale to fit its bounds to the best extent that it can.
The implementation can be extended for any UI element (such as UILabel):
let label = UILabel() label.font = UIFont.preferredFont(forTextStyle: .headline)
| Style | Font | Size |
|---|---|---|
| .largeTitle | SFUIDisplay | 34.0 |
| .title1 | SFUIDisplay (-Light on iOS <=10) | 28.0 |
| .title2 | SFUIDisplay | 22.0 |
| .title3 | SFUIDisplay | 20.0 |
| .headline | SFUIText-Semibold | 17.0 |
| .callout | SFUIText | 16.0 |
| .subheadline | SFUIText | 15.0 |
| .body | SFUIText | 17.0 |
| .footnote | SFUIText | 13.0 |
| .caption1 | SFUIText | 12.0 |
| .caption2 | SFUIText | 11.0 |
Go to Custom HTTPD ConfigurationSelect the php-fpm version you are running for the domain you…
cd /usr/local/directadmin/scripts ./letsencrypt.sh renew [domain.com] 4096
We calculate based on the following formula: pm.max_children = Total RAM dedicated to the web…
I would like to introduce to you, the simplest and easiest way to install OpenVPN…
cd /usr/local/directadmin/custombuild/ ./build update ./build update_da
cd /usr/local/directadmin/custombuild ./build set webserver nginx ./build update ./build set php1_mode php-fpm ./build set php2_mode…