diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-10-23 21:59:37 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-10-24 20:00:58 -0700 |
| commit | 64f825465de9fa30c4dfe2707067efdb96110db8 (patch) | |
| tree | 5241385e316e2f4ceede5018603103d71be75202 /composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine | |
| download | abstraction-engine-kt-64f825465de9fa30c4dfe2707067efdb96110db8.tar.gz abstraction-engine-kt-64f825465de9fa30c4dfe2707067efdb96110db8.zip | |
Init
Diffstat (limited to 'composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine')
| -rw-r--r-- | composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine/MainViewController.kt | 5 | ||||
| -rw-r--r-- | composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine/Platform.ios.kt | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine/MainViewController.kt b/composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine/MainViewController.kt new file mode 100644 index 0000000..4f98625 --- /dev/null +++ b/composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine/MainViewController.kt @@ -0,0 +1,5 @@ +package coffee.liz.abstractionengine + +import androidx.compose.ui.window.ComposeUIViewController + +fun MainViewController() = ComposeUIViewController { App() }
\ No newline at end of file diff --git a/composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine/Platform.ios.kt b/composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine/Platform.ios.kt new file mode 100644 index 0000000..a6362e3 --- /dev/null +++ b/composeApp/src/iosMain/kotlin/coffee/liz/abstractionengine/Platform.ios.kt @@ -0,0 +1,9 @@ +package coffee.liz.abstractionengine + +import platform.UIKit.UIDevice + +class IOSPlatform: Platform { + override val name: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion +} + +actual fun getPlatform(): Platform = IOSPlatform()
\ No newline at end of file |
