afaik you can use swift for both mac and iOS however they're different platforms so there won't be 100% overlap.
have you considered building a web app? you can run it in the browser on both desktop and mobile. you can also use a cordova based framework to wrap it in an app for the app store.