You'll be working with a different IDE or text editor (vim, emacs, VSC, whatever) and/or with command-line callouts to command-line Fortran compilations from Xcode, and probably with command-line build scripts, to get this to work.
Xcode itself has no support for Fortran.
Past Cocoa and Swift frameworks and related, Apple also doesn't document a mixed-language calling standard, akin to what is available on some other platforms.
A search for Xcode Fortran Monterey will find some previous discussions that might be helpful.
e.g.
https://stackoverflow.com/questions/71088796/how-to-install-gfortran-for-macos-monterey-version-12-2-1-m1
https://stackoverflow.com/questions/71507047/installed-macos-montery-and-gfortran-now-gives-error-ld-unsupported-tapi-fil
Usual issue for folks starting out here is finding where and then adding the necessary libraries into the compilation and linking paths, which is more of a slog of adding switches than anything else. Then figuring out how to call Swift from Fortran (probably via the C bindings?) will either be an effort, or some research finding somebody that's already done it.
If you want to develop in Fortran alone and not tied to other tooling, use VSC or Eclipse or whatever IDE, or use command-line builds and an ASCII-capable (yeah, technically probably UTF-8 encoded ISO Latin 1) text editor as has been done for decades on other platforms.