You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UIFontMetrics was announced as a new feature in iOS 11 to help deal with custom fonts and dynamic type. It looks like it accomplishes something similar to the various adapt functions in BonMot.
Here's an example from one of the session videos (no VOD link yet)
letbodyMetrics=UIFontMetrics(forTextStyle:.body)letstandardFont=...// any font you want at the standard type sizeletfont= bodyMetrics.scaledFont(for: standardFont)
UIFontMetrics
was announced as a new feature in iOS 11 to help deal with custom fonts and dynamic type. It looks like it accomplishes something similar to the variousadapt
functions in BonMot.Here's an example from one of the session videos (no VOD link yet)
More can be read about it here.
The text was updated successfully, but these errors were encountered: