Closed gigecogary closed 3 years ago
It looks like there’s a form feed character (U+000C) after ContentView()
. Are you sure this wasn’t modified by mistake after being generated? I just made a new SwiftUI app with Xcode 12.0 (12A7209) and got no unexpected character in that same location.
You are right, closing this issue.
If U+000C is permitted by the Swift compiler, it probably shouldn't cause an error in SwiftFormat. I'll look at fixing that.
@gigecogary fixed in 0.47.0
The following gives the error inconsistent white space, at line 19 This is a file that is generated by xcode for a brand new SwiftUI project