We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since RichTextKit wraps UIKit and AppKit, the SwiftUI toolbar view modifier with keyboard placement doesn't work.
toolbar
In other words, this will not work:
RichTextEditor(text: $text, context: textEditorContext) .frame(minHeight: 200) .toolbar { ToolbarItem(placement: .keyboard) { Button { richTextContext.isBold.toggle() } label: { Image(systemName: "bold") } } }
In my own app, I developed a custom toolbar that was pinned above the keyboard. The library should offer this custom toolbar as a feature.
The text was updated successfully, but these errors were encountered:
@danielsaidi Thanks for considering this. Here's one approach that I used that worked well with RichTextKit's editor.
Sorry, something went wrong.
Yeah, this is absolutely something the library should simplify :)
Thanks for the link - I will check it out!
I have added a new keyboard toolbar to the library, which I think removes the need for using a SwiftUI toolbar item with .keyboard placement.
.keyboard
The new toolbar will be available in 0.3.
0.3
No branches or pull requests
Since RichTextKit wraps UIKit and AppKit, the SwiftUI
toolbar
view modifier with keyboard placement doesn't work.In other words, this will not work:
In my own app, I developed a custom toolbar that was pinned above the keyboard. The library should offer this custom toolbar as a feature.
The text was updated successfully, but these errors were encountered: