-
Notifications
You must be signed in to change notification settings - Fork 180
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
[Verify] Add 'isScam' field #1116
Conversation
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.
Left only minor syntax improvements. LGTM otherwise!
"revision": "04bee4ad86d74d4cb4d7101ff826d6e355301ba9", | ||
"version": "8.9.4" | ||
"revision": "12998398eb51e2e8ff7098163fa97d305eee6d87", | ||
"version": "8.11.0" |
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.
We should probably pin the version of this dependency so we avoid those
|
||
Text("Cannot verify") | ||
.foregroundColor(.orange) | ||
.font(.system(size: 14, weight: .semibold, design: .rounded)) |
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.
You can apply these modifiers only once to the entire HStack, removing the duplication.
.padding(5) | ||
.background(Color.red.opacity(0.15)) | ||
.cornerRadius(10) | ||
.padding(.top, 8) |
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.
nit: Same with these padding
and cornerRadius
modifiers. You can wrap the entire switch in a Group and apply them there e.g. Again just to avoid some duplication
Group {
switch foo {
case .bar:
HStack { ... }
}
}
.padding(5)
.cornerRadius(10)
.padding(.top, 8)
.frame(maxWidth: .infinity) | ||
.padding() | ||
.background(Color.red.opacity(0.15)) | ||
.cornerRadius(20) |
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.
nit: same thing with modifiers here
Description
Due Dilligence