Hello,
I am planning to create an app using swift for iOS and android. I would like to know how to make use of Swift language to write a common code for both the platforms. Is it possible to write a code like this? if possible please guide me to do that.
You might want to check out RemObject’s Silver (I’ve read about it, but never experimented much with it.). It’s basically Swift with some extra stuff added on. Their IDEs also allows you to write Android apps in Swift and build them using Android SDK and NDK.
Each platform needs to access some platform-specific libraries, so you won’t be able to share all the code between them. How ever, you should be able to share things like data models or network controllers that are more or less platform-agnostics.