https://kotlinlang.org logo
#fleet
Title
# fleet
f

Filip Wiesner

11/12/2023, 1:23 PM
👋 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

Maciej Procyk

11/12/2023, 9:48 PM
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

Filip Wiesner

11/13/2023, 6:37 AM
Thank you! ❤️ Will try later tonight
3 Views