-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Weird indentation when chaining calls after a trailing closure. #205
Comments
After playing around with the snippet and placing line breaks in different places, I've found a workaround, which gives a nice formatting: Observable // line break here
.combineLatest(self.stepName, self.stepDuration) {
name, duration -> Bool in
return name?.count ?? 0 > 0 && duration > 0
}
.bind(to: self.isAddStepAllowed)
.disposed(by: self.disposeBag) It feels a bit weird to leave a short first line, but at least it works. |
Thanks for report, seems comment block the train of closure work. |
@dmitriy-shmilo hey I am currently having the exact same issue can you share your workaround? thanks |
@rhkrthdud7 seems put |
@Jintin oh I don't how I didn't see it... Thanks!! |
Using Swimat Version 1.6.2 (20) with XCode 10.1.
The following is a Swimat output when not using a trailing closure.
Swimat correctly indents it, and keeps indentation consistent, which is great. However, if you were to replace
resultSelector
with a trailing closure, I'd expect an output to look similar to this:But what actually happens is Swimat formatting it to this:
The text was updated successfully, but these errors were encountered: