Closed r-jarvis closed 8 months ago
@danielsaidi It looks like the same test that is failing here is also failing on main. Will update PR when that is fixed.
Hey @r-jarvis - that's great! I will take a look at this on Monday 👍
Thank you for the PR @r-jarvis - I've merged it and will modify it a bit before 1.0 🎉
This PR is in response to comments on this PR after merge: https://github.com/danielsaidi/RichTextKit/pull/140
I split out configuration and style into separate files and implemented the usage of
EnvironmentKeys
/EnvironmentValues
in order to not require us to inject config/styles in theRichTextKeyboardToolbar
initializer.I did not make the
RichTextKeyboardToolbarStyle
andRichTextKeyboardToolbarStyleKey
children ofRichTextKeyboardToolbar
because of issues with generics. TheEnvironmentKey
protocol requires concrete types and not generics. Since the generic types aren't actually used in the configuration and style this shouldn't cause any issues. There may be a way around this? Let me know if you'd like me to look into that deeper.Added a few commented out lines to the iOS demo app in order to show usage. I'm not sure if that is the preferred method or not.