Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Custom Fields: Refactor AztecEditorView to be reusable #13925
Custom Fields: Refactor AztecEditorView to be reusable #13925
Changes from 29 commits
30df87d
f356cba
251d542
89bcbff
d3b17e6
53494ce
3f75b67
7a9eb96
60b44a4
9fd2f57
6d5855b
f32a3f3
cc939db
facdfd8
133b3eb
e2f1da5
5a7de7c
31cf7e3
9d2ddac
6b2b273
058fe3b
314a522
0b779dd
38e4baf
3932d43
563dd83
1ee637a
a4c7771
730eb2a
fc7952d
adeb80d
fca268c
60d5f4b
13b7bec
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Could you explain the need for using
DispatchQueue.main.async
here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I added this in the commit message but it wasn't obvious:
This fixes the same issue as in the 314a522 commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That error hints an incorrect use of SwiftUI. Using
DispatchQueue.main.async
is just a workaround, and I'm unsure it actually fixes the problem.Instead, try using
@Binding
only:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that solution makes sense to me but it's showing the same issue:
(The warning only appears when actually tapping the "HTML" switcher in the Simulator).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens because
content
is updated immediately upon view creation. A workaround:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 60d5f4b