What is a .swift file?
Answer
SWIFT files contain source code written in an Apple native programming language of the same name. … Files that have a SWIFT extension are used to write and compile apps for apple devices such as the iPad, iPod, iPhone or Mac computers.