Swift Scripting in Practice
summary
Shows concrete wins: replaces manual renaming of ~100 animation frames and auto-generates configs for over 100 animations by importing the app enum as a single source of truth. Compares single-file Swift scripts (slow, no frameworks) with compiled tools via the Swift Package Manager, and introduces Marathon which bootstraps packages, compiles scripts to binaries, installs to /usr/local/bin, and runs them. Demo uses Files, ShellOut and XcodeGen (xgem); it builds, installs and opens workspaces successfully, aside from a demo typo.
AI-written summary · about
chapters (11)
- 0:00Introduction to Swift
- 1:57Benefits of Scripting
- 3:20Practical Example: Renaming
- 5:53Why Use Swift for Scripts
- 8:36Shared Code Example
- 12:27Methods of Scripting
- 16:09Introducing Marathon
- 18:55Demo: Creating a Tool
- 22:19Installing and Using Scripts
- 23:41Useful APIs and Tips
- 25:43Conclusion and Q&A
related talks
27mSwift scripting in practice
24mSwift Scripts: Zero to Hero
44mSwift Packages - Dependency Management of the Future
33mScaling Swift Development
26mSwift beyond Apple: Making Software for the Physical World
27mA 100% SwiftUI App
47mAn Introduction to the Swift Programming Language
30mBuilding Swift Command Line Tools
