Your UI shouldn't be importing your data layer.
SolidLikeARock is a tiny Swift linter (built on SwiftSyntax) that enforces your architecture boundaries in CI, cross a layer you shouldn't and the build fails.
github.com/nenadvulic/solid-…
Swift macros have been executed upon with such incompetence, from the SwiftSyntax source coupling (fixed years later) to issues like this still finding a way to fuck you.
Good luck if you try to use Xcode cache and your project uses Swift macros. The hash of every Swift task becomes unstable cause they hash the macro binary #fun
Created interactive graph viewer for @pointfreeco's TCA architecture and budget linter. It walks into your reducers with SwiftSyntax
• the parent → child reducer tree • every reducer's state fields, actions, Dependency
• Shared storage coupling
It also warns you about potential issues and highlights risky reducers for you, which will likely break auto completion soon.
In his article, @iosartem shows how to use SwiftSyntax to parse Swift source code and generate syntax-highlighted Markdown by annotating tokens with styles: enabling richly formatted code in static sites, blogs, and documentation.
artemnovichkov.com/blog/high…
#iOSdev tool alert! 🚨
SyntaxKit by @leogdion is a Swift package that allows developers to build Swift code using result builders. SyntaxKit provides a declarative way to generate Swift code structures using SwiftSyntax.
github.com/brightdigit/Synta…
Thanks! Honestly not sure yet - it's pretty rough around the edges right now.
Using SwiftSyntax to parse everything, but there are SO many SwiftUI patterns I'm not handling yet.
Would you actually use something like this? Trying to figure out if I should polish it or keep it as a teaching tool for my channel.
The code behind this is a mess right now 😂
Using SwiftSyntax to parse, but tracking @State through view hierarchies gets complex fast.
Still useful for understanding your own architecture patterns though.
Now that Swift 6.2 is officially out, and the corresponding SwiftSyntax 602, it's a good time to update your libraries to support the widest range of SwiftSyntax. This helps alleviate dependency resolution problems when depending on multiple libraries!
pointfree.co/blog/posts/116-…