-
Notifications
You must be signed in to change notification settings - Fork 5
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
Max button align fix #36
Changes from all commits
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 |
---|---|---|
|
@@ -82,7 +82,7 @@ public struct AssetListItemView: View { | |
public var body: some View { | ||
HStack { | ||
imageView | ||
HStack(alignment: .center) { | ||
HStack { | ||
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. make sure this does not break other places 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. Sure. By default HStack initialise with alignment: center. HStack(alignment: .center) - not necessary to write |
||
primary | ||
Spacer(minLength: 2) | ||
secondary | ||
|
@@ -180,7 +180,7 @@ public struct AssetListView: View { | |
} | ||
) | ||
} | ||
.onChange(of: toggleValue) { newValue in | ||
.onChange(of: toggleValue) { _, newValue in | ||
model.action?(.enabled(newValue)) | ||
} | ||
} | ||
|
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.
need to make sure button is not larger than
Spacing.scene.button.maxWidth
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.
yeah. Button still fixedSize and haven't changed. The frame changed for container view for iPad to fix ipad layout for that button