nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.62k stars 623 forks source link

[Question] Can I strict the order of Closure annotation? #1706

Open psbss opened 1 month ago

psbss commented 1 month ago

Hello

Thank you so much development.

I would like to strict the order of closure annotation? like this. Do you have any options or roadmap as a feature request?

🙅‍♂️ Not good
let badClosure: @escaping @Sendable () -> Void

🙆‍♂️ Good
let goodClosure: @Sendable @escaping () -> Void
nicklockwood commented 1 month ago

There's no way to do this currently, but it's a great idea for a feature

psbss commented 1 month ago

Thank you so much your reply. I hope to realize and contribute this idea 👍