-
Notifications
You must be signed in to change notification settings - Fork 216
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
Request: Line break for each multiline chain expression #543
Comments
This sounds like an interesting idea. I don't think we'd want it in member chains in general (e.g., |
Actually, can you try setting |
I agree with your point @allevato. We don't need to analyze the context to know if we are in SwiftUI or UIKit. Applying it to every chain function call may be relevant, even in Swift (e.g. Combine code could be an excellent example with chained subscribers). In my previous message, |
This would be great to have. |
Interesting |
Tracked in Apple’s issue tracker as rdar://126948253 |
Is it plan to add line break for each multiline chain expression? It may be really helpful for SwiftUI view modifiers. For example with :
👉 The input view I want to format
❌ The result with the .swift-format configuration file (see below)
✅ The expected result with the feature request
.swift-format config used
The text was updated successfully, but these errors were encountered: