some details based on #1221
I just copied Objective-C.gitignore. It seemed to do the job with a small Swift project.