They expose an API, you can write against it in Swift with the right libraries. No reason why you can't write against the same API in Linux using your language of choice.
Apple only provides bindings for Swift/JS/Obj-C though, so it'd be a bit of work.