It really isn’t though. All my iOS swift code that doesn’t touch UIKit has been running unit tests with Linux Debian on GitHub actions for a few years now with almost no extra effort.
Any api or data model code, pretty much 80% of my app code works crosss platform