SwiftFormat 0.54.0 was released yesterday: https://github.com/nicklockwood/SwiftFormat/releases/tag/0.54.0
This is a huge release with many bug fixes and new features.
Special thanks to @calstephens of Airbnb for his contributions.
SwiftFormat 0.54.0 was released yesterday: https://github.com/nicklockwood/SwiftFormat/releases/tag/0.54.0
This is a huge release with many bug fixes and new features.
Special thanks to @calstephens of Airbnb for his contributions.
#devlog for today: finished the #obsidian #swiftformat plugin! At least, a basic version of it :)
swift-format's OrderedImports should be better.
Swift files usually have a natural affinity. SwiftUI views, for instance, are SwiftUI. Models are SwiftData. Extensions to Foundation are Foundation.
Rewriting my imports so that a third party helper framework comes first just because it's alphabetically first is stupid. Likewise, putting SwiftData ahead of SwiftUI in a view is stupid.
Let me pick the first import and leave it alone! #iOSDev #Swift #swiftFormat
There are at least two things called βswift formatβ:
By @nicklockwood: https://github.com/nicklockwood/SwiftFormat
By Apple: https://github.com/apple/swift-format
Which one should I use, if I can choose freely for a project?