nearly complete swift codebase