Question: what is the difference between cocoa touch class and swift file?
Answer: Joshua Hawthorne. Cocoa Touch is a UI Framework used for building software programs to run on iOS. You can think of it as a swift file that comes "ready made" with a few things for you to use. ... Empty swift files are typically used for custom classes, structs, enums, etc.