Claude Code requires extra instructions and hooks to do documentation lookups for swift/iOS frameworks. It constantly fails to check typealiases, misses braces when refactoring, and needs to be shown the newer way to do things, given how swift and iOS changes each year. For now, I have made it map out common pitfalls into a file so it doesn't keep failing, looking up repeatedly, and fixing for the same things. For any parameter or type outside of this map, it does a documentation search before proceeding.
Tag: swift
1 jot