:wave: Is there a way to use Swift UI indentation ...
# fleet
f
👋 Is there a way to use Swift UI indentation rules? It seems that SwiftUI has specific indentation rules for modifiers which Fleet does not respect (example in thread). Is there a way that I can set specific indentation rules for SwiftUI code? This makes Fleet really hard to use for SwiftUI code for me so I guess I'll just stick to XCode for now kodee sad
swiftui_indentation.mp4
m
Edit Settings JSON File...
and enable
ff.swiftUseSwiftFormat
setting to test experimental formatting Swift files with
swift-format
. By default, it works as you'd expect for SwiftUI chained calls, but for now there's no action to create its config from Fleet, so you have to create
.swift-format
configuration on your own to change concrete settings in some directory. Please follow this issue for more and vote if you find it useful
f
Thank you! ❤️ Will try later tonight