Githawk: Dynamic font support

Created on 20 Nov 2017  路  3Comments  路  Source: GitHawkApp/GitHawk

  • Style font sizes should be functions that return a relative font based on system settings

    • e.g. baseline body is size 16

  • Listen for UIContentSizeCategoryDidChangeNotification and:

    • Rebuild all models since NSAttributedStringSizing will have the font stored in its NSAttributedString

    • Call listAdapter.reloadData() to rebuild section controllers

馃悰 bug

Most helpful comment

Should we do this (see: "customization")

https://stablekernel.com/supporting-accessibility-larger-text-in-ios/

Or start using system font descriptor sizes (.body, .headline, etc)?

All 3 comments

Should we do this (see: "customization")

https://stablekernel.com/supporting-accessibility-larger-text-in-ios/

Or start using system font descriptor sizes (.body, .headline, etc)?

YES!!!

Sent with GitHawk

Yes yes yes! Think the customization would make sense as we can group it all in one place.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rnystrom picture rnystrom  路  3Comments

BasThomas picture BasThomas  路  3Comments

BasThomas picture BasThomas  路  3Comments

Iron-Ham picture Iron-Ham  路  3Comments

rnystrom picture rnystrom  路  3Comments