-
-
Notifications
You must be signed in to change notification settings - Fork 140
Crash when selecting icon in RichTextKeyboardToolbat #236
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
Comments
Thank you @TheApApp. I haven't seen this myself, so it would be great if you could pinpoint the reason for the crash, or if anyone else who also experience it can provide additional information. |
I will investigate further.. as it seems to be a consistent issue on iPhone and iPad.. It doesn't happen on mac. I am wondering if the difference is due to an attached keyboard? It happens when I select the Aa icon on the bottom of the RichTextEditor view - via touch. |
@danielsaidi I am investigating if the issue is the integration I did with SwiftData and displaying the information in AppIntents. Will confirm and close if this proves to be the case. |
It appears that my workaround for allowing the NSAttributedString to be used in SwiftData may be the issue, I am using a computed property to allow for editing, while the Data model must store it as Data. in the Editor to address this I am using the approach of
and the RichTextEditor looks like this
I am wondring if this is the root cause. |
Perhaps you could try the same in an app that hasn't got all those complexities, to see if that can help clear up the root cause. |
I've been looking at leveraging RichTextEdit, however, when ever I add the RichTextKeyboardToolbar to my view, it crashes if I try either of the two presented buttons. The crash when running on an actual device is
And when I run it in the simulator I get:
The view code is as follows:
The above is called in the main view body:
And LetterEditor Extension:
The text was updated successfully, but these errors were encountered: