-
Notifications
You must be signed in to change notification settings - Fork 82
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
Featue request: Add an example of usage with swiftui #68
Comments
That's an interesting question. I have not started looking into integration with SwiftUI yet. Though I do plan to try that out in future, unfortunately it's not in one of the immediate priorities. Keep an eye out for updates on this issue. Hopefully, I'll be able to make time to at least try it out. |
Proton is iOS library based on UIKit. Thus, you can't use it natively on macOS. Well, except in macCatalyst, but I assume it wasn't the question. |
I've got it working with SwiftUI using |
how can I use Commands and TextProcessor in swiftui |
@alexwchh, Command and TextProcessor work off the EditorView. You can wrap EditorView in SwiftUI using UIViewRepresentable and use the same. These are not directly usable in SwiftUI as such. |
I have been developing an app using SwiftUI with Proton since early 2021. You need to create a Multiplatform Document App, then It will work on iOS, iPadOS and MacOS. As I said in an earlier post you should interface to Proton using UIViewRepresentable. I would like to use SwiftData so I don't need Coredata, but I've hit a number of problems, so have put that on the back burner for now. |
How could I use proton in a swiftui based macos app? It would be great if there's such an example.
The text was updated successfully, but these errors were encountered: