Visualizing the Structure of a Swift Project
summary
Parses Swift source with SwiftSyntax to extract concrete structural dependencies — inheritance, usage (parameters, locals, casts), and aggregation — and reads the Xcode project file to map files into groups and targets. Builds a tool that renders an interactive node-link hierarchical layout with container nodes (groups and source files) that expand and collapse, computes positions so edges flow downward, shows metrics like cumulative component dependency, incoming/outgoing counts, tags and history, and demos opening nodes and tracing unexpected coupling.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:46Atomic Swift Projects
- 2:41Dependencies
- 6:03Syntax Proposal
- 6:29Wizard
- 7:34Ast Explorer
- 8:16Class Declaration
- 11:13Xcode Project
- 12:42Collage
- 13:32Requirements
- 14:08Container nodes
- 18:53Visualization
- 19:42Demo
- 23:14Wrap up
related talks
01h 03mSwift Tools for Software Crafting 2024
44mSwift Packages - Dependency Management of the Future
19mSoftware Visualization: The humane solution
21mUnlock the Potential of Swift Code Generation
04mGet Productive on Unfamiliar Source Code
32mHow to visualize a ruby project
28mI've Fallen Into a Large Codebase and I Can't Get Up!
01h 02mUse your source code to document your application
