-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RichTextEditor with a .clear backgroundColor #173
Comments
Thank you for the bug report. I'm very busy atm and am not actively working on the project, but anyone are more than welcome to take a look at this. |
Hello @daveguerin , as a workaround, you can pass custom closure to Try this code:
However the issue is in more lines of code than just one single place:
I am currently busy with other projects as well, however this should give you a great heads up how to fix this. Feel free to create PR, for this, I am happy to review/guide you if you have any issues. Thank you for the report! |
To futher Clarify, context should have nothing to do with color of the UI/NSTextView itself. We planned with @danielsaidi to delete viewConfigurationClosure, which should probably be proper fix, right now, because it is set on 2 places, it creates this unexpected behaviour. I really can't wait to get to this project and fix all those issues 😅 |
Hi @danielsaidi and @DominikBucher12 , I've got it working using the
I don't know enough Swift to fully understand exactly how all the parts of RichTextKit fit together. Now, if it was Objective-C.... 🙃 I'm busy with a bug in another of my apps this week, I'll get back to the app that uses RichTextKit next week and see if I can work it out. Cheers, Dave |
Here's the requested GitHub issue from yesterday on Mastodon:
I'm integrating a RichTextEditor into one of my Objective-C apps using a UIHostingController. it's iOS/iPadOS 17.4 and up.
Using this stripped back code:
If the RichTextEditor has no text, then all context have a
.clear
background as expected.If the RichTextEditor has some text, any text, then:
context1
has the expected.clear
background.context2
has a.systemBackground
background.context3
also has a.systemBackground
background.It could be something I'm doing, Swift/SwiftUI is still quite new to me, a rather different headspace to Objective-C!
Am I setting the background correctly in
context2
andcontext3
? Or is something else happening?Cheers,
Dave
The text was updated successfully, but these errors were encountered: