How jmseb3/mtk works
MTK is a Kotlin Multiplatform library that converts Long, Int, and comma-formatted numeric strings into Korean won words, with options for group spacing, digit spacing, and the space before “원”. Its demo UI accepts an amount and options, calls the converter, and displays the result; Android, iOS, JVM, and web entry points host that UI. The conversion logic is concentrated in one runtime file, so its parsing, grouping, and rendering are kept together. Relationships for the sampled platform hosts are evidenced in source; broader platform support is visible in the tree.
Main entry points: App.kt Input and options UI · MTK.kt Korean amount converter · MainViewController.kt iOS Compose host · ContentView.swift SwiftUI bridge
Components 9
Conversion library
- Korean amount converter
moneytokorean/src/commonMain/kotlin/io/github/jmseb3/MTK.kt
Demo application
- Input and options UI
composeApp/src/commonMain/kotlin/io/github/jmseb3/App.kt - Android host
composeApp/src/androidMain/kotlin/io/github/jmseb3/MainActivity.kt - iOS Compose host
composeApp/src/iosMain/kotlin/io/github/jmseb3/MainViewController.kt - SwiftUI bridge
iosApp/iosApp/ContentView.swift - iOS app entry
iosApp/iosApp/iOSApp.swift - JVM host
composeApp/src/jvmMain/kotlin/io/github/jmseb3/main.kt - Web host
composeApp/src/webMain/kotlin/io/github/jmseb3/main.kt
Other components
- User
Connections 9
- User → Input and options UI: enters amount
- Input and options UI → Korean amount converter: converts input
composeApp/src/commonMain/kotlin/io/github/jmseb3/App.kt - Korean amount converter → Input and options UI: returns words
composeApp/src/commonMain/kotlin/io/github/jmseb3/App.kt - Android host → Input and options UI: hosts UI
composeApp/src/androidMain/kotlin/io/github/jmseb3/MainActivity.kt - iOS Compose host → Input and options UI: hosts UI
composeApp/src/iosMain/kotlin/io/github/jmseb3/MainViewController.kt - iOS app entry → SwiftUI bridge: shows view
iosApp/iosApp/iOSApp.swift - SwiftUI bridge → iOS Compose host: bridges to
iosApp/iosApp/ContentView.swift - JVM host → Input and options UI: hosts UI
composeApp/src/jvmMain/kotlin/io/github/jmseb3/main.kt - Web host → Input and options UI: hosts UI
composeApp/src/webMain/kotlin/io/github/jmseb3/main.kt