Open malhal opened 5 months ago
Curious: that doesn't happen when I run it. We are setting .toolbar(.hidden, for: .navigationBar)
in the CityView.swift, which should be hiding the button (and so using our custom back button).
Also, I notice your skip checkup
failed. I assume you are not able to launch the Android version? If you want to post the output log (/tmp/skip-checkup-2024-06-05T20:00:37Z.txt
), we can try to help you work through that issue as well.
Sorry I should have mentioned I was still downloading Android Studio when I removed the gradle build phase to test the iPhone verison. Checkup passes now:
mh@Malcs-MBP MacOS % skip checkup
[✓] Skip version 0.8.46 (= 0.8.46)
[✓] macOS version 14.5 (> 13.5.0)
[✓] Swift version 5.10 (> 5.9.0)
[✓] Xcode version 15.4 (> 15.0.0)
[✓] Xcode tools SDKs: 8
[✓] Homebrew version 4.3.3 (> 4.1.0)
[✓] Gradle version 8.7 (> 8.6.0)
[✓] Java version 21.0.3 (> 21.0.0)
[✓] Android Debug Bridge version 1.0.41 (> 1.0.40)
[✓] Android Studio version: 2023.3
[✓] Android tools SDKs: 2
[✓] Resolve dependencies (7.22s)
[✓] Build hello-skip (9.42s)
[✓] Test Swift (5.83s)
[✓] Test Kotlin (137.74s)
[✓] Archive iOS ipa (15.69s)
[✓] Assemble HelloSkip-release.ipa 37 KB
[✓] Verify HelloSkip-release.ipa 37 KB
[⠁] Verify HelloSkip-release.apk[✓] Assembling Android apk (118.27s)
[✓] Verify HelloSkip-release.apk 12.7 MB
[✓] Check Swift Package (0.41s)
[✓] Skip 0.8.46 checkup succeeded in 295.78s
Toolbar hidden also causes animation and layout glitches because it is hiding the bar on the first screen as well. navigationBarBackButtonHidden
is another option but that disables the swipe back gesture. Seems there is no good solution for this in SwiftUI yet. It is interesting you don't experience the bug glitch though. Here is what it looks like just before I tap the row:
I hadn't been navigating from a filtered search result. When I do that (first filtering on "Dubai", then ), I do see the double back button you reported. Strangely, if you then navigate into one of the "Nearest Cities" (e.g., Cairo) and then back out of it, the default nav button is hidden and the UI looks correct.
This is clearly a SwiftUI bug. And while it isn't a bug in Skip per se (since the Android side works fine), we should try to figure out a workaround for this glitchy behavior. Please let us know if you have any suggestions.
Detail slides on with 2 back buttons (the native blue one and custom white one), see screenshot below:
Xcode Version 15.4 (15F31d)