StyledTextKit icon indicating copy to clipboard operation
StyledTextKit copied to clipboard

Separate render and style params from building

Open rnystrom opened this issue 5 years ago • 0 comments

Love this blog post! Removing all color/font from building would be amazing. Instead:

  • Use "style builder" pattern that registers styles
    • Need to still be able to "push" and "pop" styles
    • Should all props be in one style (.font, .foregroundColor, etc), or should there be a style per prop? Latter seems harder to maintain
  • Remove UIContentSizeCategory from all params until render

Necessary to make progress towards GitHawkApp/GitHawk#198 so you can have themes/styles and re-render (missing all caches) w/out having to rebuild everything (which you'd have to do today).

rnystrom avatar Dec 01 '18 16:12 rnystrom