Skip to content

Customize CardinalKit Views (e.g. font or color) #35

Discussion options

You must be logged in to vote

Yes, you can, e.g., use the .font modifier to most of the CK views to change the font that is used in there like any other SwiftUI view 👍

A more general comment: If you want to increase the font size for the application and do that on a user-by-user basis, CK fully supports font scaling using the accessibility options. This is also how Apple generally recommends font scaling to work.
This is rather a system-wide accessibility setting rather than an app-by-app setting. We use the default font sizes, e,g., .body, in the framework. This is similar to how other frameworks that Apple develops and even ResearchKit does it.
You can learn more about fonts here: https://developer.apple.com/design/…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PSchmiedmayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant