Jintin / Swimat

An Xcode formatter plug-in to format your swift code.
https://jintin.github.io/Swimat/
MIT License
1.65k stars 89 forks source link

SwiftUI modifiers are formatted incorrectly when tabs are set to 2 spaces #240

Open Isuru-Nanayakkara opened 2 years ago

Isuru-Nanayakkara commented 2 years ago

What is the issue

Formatting SwiftUI code in a project where both Tab and Indent widths set to 2, results in modifiers code get positioned slightly misaligned.

Screenshot 2022-05-29 at 5 52 41 PM

Expected behavior

Modifiers code should be positioned under the ending curly brace.

Screenshot 2022-05-29 at 5 52 54 PM

Desktop (please complete the following information):

Additional context Xcode: 12.3.1

sietnik commented 1 year ago

OS: 13.1 Swimat: 1.7.0. (21) Xcode: 14.2

Problem still exists.