Skip to content

feat: iOS NucleusFont string initializer#38

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

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)

@Priva28

Priva28 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

Closing since equivalent functionality was added in this PR: #39

@Priva28 Priva28 closed this Jun 15, 2026
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