Open swift-ci opened 4 years ago
Attachment: Download
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.
Tracked in Apple’s issue tracker as rdar://126948289
Attachment: Download
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | swift-format | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: d94a19ff926d1ac4c036ad3673897328Issue Description:
In SwiftUI examples, Apple demonstrates how to utilize the action & view closures for the Button element with two trailing closures:
But swift-format will suggest to revise function calling signature to remove multiple trailing closures.