With the latest update we are seeing some unexpected indentation with closure parameters to functions. Given the input code, we would expect it to remain unchanged which matches what "Control + I" produces in Xcode.
What we are seeing is the below output where the body of the closure is aligned to the function parameter list.
Our .swiftformat file contains:
--indent 4
Adding --xcodeindentation enabled doesn't have any effect.
With the latest update we are seeing some unexpected indentation with closure parameters to functions. Given the input code, we would expect it to remain unchanged which matches what "Control + I" produces in Xcode.
What we are seeing is the below output where the body of the closure is aligned to the function parameter list.
Our
.swiftformat
file contains:Adding
--xcodeindentation enabled
doesn't have any effect.Input
Output: