Open simonbromberg opened 3 years ago
I'm getting the same thing with single lines being indented too much:
init() {
UINavigationBar.appearance().largeTitleTextAttributes = [
.foregroundColor: UIColor.white // This line is indented twice
]
}
Thanks for the awesome tool @Swimat team, can't wait for more improvements
What is the issue Swimat's indentation seems to behave incorrectly with lines beginning with
.
which are inferring a type.For example:
If it were
MyClass
above instead of.init
the indentation works as expected, but it's nicer to use type inference.Even a single line indents too much:
Expected behavior
Desktop (please complete the following information):
Additional context Does this in the Preview tool of the Swimat macOS app too.