-
Notifications
You must be signed in to change notification settings - Fork 289
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
Intro note submit button doesn't leave screen but posts multiple of the same note #1726
Comments
Thanks for reporting. I believe this is a duplicate of #1502 |
I believe this is different |
this is really bad |
Is it possible to get a quick fix in, or remove this code for now? |
@alltheseas, @jb55, I believe this is precondition dependent. Two examples: Device: iPhone 15 Pro simulator Device: iPhone 13 Mini |
I suspect this might be due to our use of I will check if that's indeed the root cause |
Device: iPhone 13 Mini |
It does not seem to be the only cause. Changing it to the new |
@jb55, this is starting to look like one of those obscure SwiftUI bugs. The relevant factors that determine whether or not the bug occurs seem to be one or many of these:
In the interest of time, I will send a patch to temporarily disable this onboarding feature |
Does this experience make the case for UIkit? |
Nah, UIKit also has some weird quirks (e.g. the text editor wrapping bugs) LOL |
@jb55, I sent an emergency patch for temporarily disabling the feature: https://groups.google.com/a/damus.io/g/patches/c/T6pqnIhJzHc I will work on a full clean fix tomorrow. I believe the root cause is a combination of:
If you could double-check my testing under a different precondition I would appreciate 🙏 (we don't know yet the extent of the inconsistencies around this). |
On Thu, Nov 16, 2023 at 08:14:16PM -0800, alltheseas wrote:
> this is starting to look like one of those obscure SwiftUI bugs.
Does this experience make the case for UIkit?
that would be a huge change, it would take months
|
@jb55, @alltheseas, sent a patch with the fix! Root causing, code, fix explanation, and testing report are all in the patch email (Can be viewed here: https://groups.google.com/a/damus.io/g/patches/c/DJ8XymT9mHA) Important notes:
|
On Fri, Nov 17, 2023 at 12:11:54PM -0800, Daniel D’Aquino wrote:
@jb55, @alltheseas, sent a patch with the fix!
Root causing, code, fix explanation, and testing report are all in the patch email (Can be viewed here: https://groups.google.com/a/damus.io/g/patches/c/DJ8XymT9mHA)
awesome, will see if I can get a hotfix out
|
This commit fixes the issue where clicking "post" on the onboarding sheet does not dismisses itself under certain device/iOS combos. The root cause is that the behavior of `dismiss` calls under a deeply nested view (i.e. not a direct subview of the sheet) is inconsistent depending on the device or iOS. This fix does two things: 1. It upgrades the usage of `presentationMode` (which is deprecated) to the new `dismiss` API 2. It makes the onboarding sheet view (A direct subview of the sheet) to listen to signals from the post view and use that to also call `dismiss()`, which is explicitly supported by Apple in their docs (https://developer.apple.com/documentation/swiftui/environmentvalues/dismiss) Testing ------- PASS Device: iPhone 13 mini (physical device) iOS: 17.1 Damus: This commit (Local build, no local mods) Setting: "Always show onboarding" is set to ON Coverage: 1. Clicking "post" on onboarding post view publishes the post and dismisses the view. PASS 2. Clicking "cancel" on onboarding post view dismisses the view without publishing. PASS 3. Dragging the onboarding post view down dismisses the view without publishing. PASS 4. Making a normal post (I replied to a thread) still publishes the post and dismisses the normal post view sheet. PASS Testing on other Device/iOS combos --------------------------------- PASS Preconditions: - iPhone 15 Pro (simulator) on iOS 17.0.1 - iPhone SE 3rd gen (simulator) on iOS 16.4 Damus: This commit (Local build, no local mods) Setting: "Always show onboarding" is set to ON Coverage: 1. Clicking "post" on onboarding post view publishes the post and dismisses the view. PASS Closes: #1726 Changelog-Fixed: Fix onboarding post view not being dismissed under certain conditions Signed-off-by: Daniel D’Aquino <daniel@daquino.me> Reviewed-by: William Casarin <jb55@jb55.com> Signed-off-by: William Casarin <jb55@jb55.com>
The new update on my iPhone 12 pro, iOS 17 with the introduction notes posts multiple of the same button after clicking the submit button. The submit button doesn't leave the post creation screen
I created a new npub but I couldn't get back to the intro note screen
The text was updated successfully, but these errors were encountered: