TouchTypist
Installation
TODO
Usage
Rewrite single file
$ swiftc -frontend -dump-ast sourcefile.swift > sourcefile.swift.ast
$ touchtypist rewrite sourcefile.swift.ast
- let value = 1
+ let value: Int = 1
- [1, 2, 3].map { i in
+ [1, 2, 3].map { (i: Int) -> String in
return i.description
}
Rewrite Xcode projects
Set User-Defined build setting, SWIFT_EXEC
with touchtypist-xcode-wrapper
and run building.