-
Notifications
You must be signed in to change notification settings - Fork 498
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
Simplify the layout of the onboarding splash screen #6320
Conversation
Kudos, SonarCloud Quality Gate passed! |
Codecov Report
@@ Coverage Diff @@
## develop #6320 +/- ##
========================================
Coverage 6.24% 6.24%
========================================
Files 1440 1440
Lines 155412 155419 +7
Branches 62532 62533 +1
========================================
+ Hits 9705 9713 +8
+ Misses 145302 145301 -1
Partials 405 405
Continue to review full report at Codecov.
|
📱 Scan the QR code below to install the build for this PR. If you can't scan the QR code you can install the build via this link: https://i.diawi.com/V99BWg |
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.
LGTM 👍
I'm not sure we can have a better fix anyway (I was thinking about nesting the Image in a container and applying some of the frame modifiers to the container and see what happens, but I'm not sure how much effort we want to put into something that looks like a pure iOS/SwiftUI issue).
Note: There's a second review on these changes on ElementX. |
* Simplify the layout of the onboarding splash screen * Re-organise OnboardingSplashScreen. * Fix frame drops for real this time.
Fixes #6319 by simplifying the layout of the splash screen:
VStack
with the buttons rather than using aZStack
andViewFrameReader
.The second commit in the PR updates the structure of the splash screen to match the other SwiftUI screens with the
body
above all of the other views. It is probably easiest to review this PR by commit because of this.Edit: It turns out all of these changes didn't fix the issue, what did was increasing the
maxWidth
on the carousel images in the last commit. Tested with screens of 320pt, 375pt, 390pt, 414pt and 428pt and no stuttering noticed, but this feels like a rather fragile assumption 😕