Skip to content
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

[SR-13011] swift-format doesn't approve of standard SwiftUI Button trailing closure syntax. #322

Open
swift-ci opened this issue Jun 14, 2020 · 1 comment
Labels
bug Something isn't working swift-format

Comments

@swift-ci
Copy link

Previous ID SR-13011
Radar None
Original Reporter leisurehound (JIRA User)
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s swift-format
Labels Bug
Assignee None
Priority Medium

md5: d94a19ff926d1ac4c036ad3673897328

Issue Description:

In SwiftUI examples, Apple demonstrates how to utilize the action & view closures for the Button element with two trailing closures:

Button(action: {
// do something
}) {
  Text("Label")
}

But swift-format will suggest to revise function calling signature to remove multiple trailing closures.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
@ahoppen
Copy link
Contributor

ahoppen commented Apr 23, 2024

Tracked in Apple’s issue tracker as rdar://126948289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working swift-format
Projects
None yet
Development

No branches or pull requests

2 participants