-
Notifications
You must be signed in to change notification settings - Fork 117
Fix: Overly Large Instruction Image on application password tutorial on iPad #12759
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
Changes from 2 commits
663358f
1abd4e8
b294acd
ab5f628
9c762cd
06edacc
26b14e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,9 +78,13 @@ struct ApplicationPasswordTutorial: View { | |
.frame(maxWidth: .infinity, alignment: .leading) | ||
.padding([.horizontal, .top]) | ||
|
||
Image(uiImage: .appPasswordTutorialImage) | ||
.resizable() | ||
.aspectRatio(contentMode: .fit) | ||
HStack(spacing: .zero) { | ||
Image(uiImage: .appPasswordTutorialImage) | ||
.resizable() | ||
.aspectRatio(contentMode: .fit) | ||
.frame(maxWidth: Layout.imageMaxWidth) | ||
Spacer() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm unsure about pushing the image to the left - it does look better on larger screen sizes but on iPhones the image might look better when center-aligned. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think keeping the image in the center looks in small screen sizes, while on large screens it's less distracting to be left-aligned. If it's not too complicated, having a separate alignment on large screens would be nice, otherwise I think center-aligned image looks better. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Applied the change here: 06edacc (centered the image for both iPhone and iPad) Ready for another check 🙌 |
||
} | ||
|
||
Text(Localization.tutorial2) | ||
.bodyStyle(opacity: 0.8) | ||
|
@@ -142,6 +146,7 @@ private extension ApplicationPasswordTutorial { | |
|
||
enum Layout { | ||
static let bottomButtonsSpacing: CGFloat = 16.0 | ||
static let imageMaxWidth: CGFloat = 400 | ||
} | ||
} | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.