skiptools / skip-ui

SwiftUI for Android
https://skip.tools
GNU Lesser General Public License v3.0
125 stars 14 forks source link

Questions SkipUI #40

Open warmachinesocial opened 4 months ago

warmachinesocial commented 4 months ago

@aabewhite to be honest I never knew about this framework until today -> I'm noob in mobile space but past a year I was working on SwiftUI to make apps and I really love writing in it. It's an awesome tool, hoping to make some small apps with SkipUI however could you explain me what actually we mean by transpiling here? Like convert to compose UI but I still don't understand how it's done?

aabewhite commented 4 months ago

Skip transpiles your Swift into Kotlin. That means it parses your Swift and outputs the equivalent Kotlin syntax.

SkipUI is a framework that Skip uses to implement the SwiftUI API on top of Jetpack Compose. Skip also has other frameworks, like SkipFoundation to implement the Foundation API on top of Android foundational libraries.

So basically:

Your Swift code calling Foundation, SwiftUI, etc APIs -> transpiled to Kotlin code calling Foundation, SwiftUI, etc APIs -> using SkipFoundation, SkipUI, etc to implement those APIs on Android

Does that answer your question?

marcprux commented 4 months ago

Also, a good introductory summary can be found at: https://skip.tools/docs/#how-does-it-work