Skip to content

feat: iOS NucleusFont string initializer#38

Open
Priva28 wants to merge 1 commit into
mainfrom
string-font-accessors
Open

feat: iOS NucleusFont string initializer#38
Priva28 wants to merge 1 commit into
mainfrom
string-font-accessors

Conversation

@Priva28

@Priva28 Priva28 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

In order to resolve a NucleusFont from a backend response, the iOS app needs a way to go from a token in a string format to the natively defined default. This PR adds a simple optional initializer to NucleusFont to add that functionality.

let font = NucleusFont(token: "b2") ?? .b4

// world app
Text("Hello, World!")
  .wldFont(font)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant