I just built a little Xcode source editor extension to add an import line without jumping to the head of file.
Sometime when you are busy at typing some coolest swift code in the world but find you need to import a missing module, you have to jump to the head of file, import it and lose yourself in no where.
This little extension will save you. Just typing the module name in a new line and launch the extension, the module will be automatically imported to the head of file and leave you at where you are.
It works with swift file. Have a check at robin/importForMe