Skip to content
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

Undo/Redo buttons in toolbar don't appear in SwiftUI #25

Open
rmi111 opened this issue May 31, 2022 · 5 comments
Open

Undo/Redo buttons in toolbar don't appear in SwiftUI #25

rmi111 opened this issue May 31, 2022 · 5 comments

Comments

@rmi111
Copy link

rmi111 commented May 31, 2022

How to add undo/redo option. It does not shows up in SwiftUI.

@Andrew-Chen-Wang
Copy link
Owner

It may be because of safe area insets. Could you try adding that to your root body?

@rmi111
Copy link
Author

rmi111 commented May 31, 2022

.safeAreaInset(.all)
This?

@Andrew-Chen-Wang
Copy link
Owner

that's my guess. Do you have a screenshot or reproducible example? For instance, is the web view going out of frame as well? Can you see the rest of the items just fine in the toolbar?

@rmi111
Copy link
Author

rmi111 commented May 31, 2022

Try this one:
EditorCode.txt
I can not see all buttons, apart from the Undo/Redo/Background colour, apart from this rest are showing just fine.

@Andrew-Chen-Wang Andrew-Chen-Wang changed the title Undo/Redo option Undo/Redo buttons in toolbar don't appear in SwiftUI May 31, 2022
@rmi111
Copy link
Author

rmi111 commented May 31, 2022

Another thing, background colour, and text colour is not working either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants