Fix and improve code samples#13312
Conversation
There was a problem hiding this comment.
Code Review
This pull request standardizes the indentation of SwiftUI code snippets in the documentation to a 2-space format and corrects a syntax error in a button example. A review comment suggests adding a .padding() modifier to the button styling example to ensure parity with the corresponding Flutter example and recommends indenting view modifiers for consistency with other sections.
|
/gcbrun |
|
Visit the preview URL for this PR (updated for commit beb2cb2): |
redbrogdon
left a comment
There was a problem hiding this comment.
LGTM. Thanks for tidying it up.
The bit about padding is weird. I'd argue that rather than adding it to the Swift code we should remove it from the Flutter example, since AFAICT it's not part of the point they're making about colors.
Either way, it's nothing this PR needs to address.
Description of what this PR is changing or adding, and why:
Issues fixed by this PR (if any):
PRs or commits this PR depends on (if any):
Presubmit checklist
of 80 characters or fewer.