You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the use of subscript(dynamicMember member: String) obfuscates which properties are available.
this makes it hard to get started with theming.
SwiftUI's Environment provides a nice solution to that exact problem. The result is a type safe key that is easy to implement in custom nodes and easy to use when theming.
I think it would be relatively easy adapting it to this library (I was able to do naive refactor in just a few minutes)
Current problem:
the use of
subscript(dynamicMember member: String)
obfuscates which properties are available.this makes it hard to get started with theming.
SwiftUI's Environment provides a nice solution to that exact problem. The result is a type safe key that is easy to implement in custom nodes and easy to use when theming.
I think it would be relatively easy adapting it to this library (I was able to do naive refactor in just a few minutes)
An implementation for the link node could look like this:
Is there an interest in moving the library towards a more typed approach like this?
I would be willing to work on this myself
The text was updated successfully, but these errors were encountered: