Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit c567442

Browse files
committed
minor
1 parent c04cb3a commit c567442

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
package com.jetbrains.jonnyzzz.common
22

3-
4-
//https://stackoverflow.com/questions/11072804/how-do-i-determine-the-os-version-at-runtime-in-os-x-or-ios-without-using-gesta
5-
3+
import platform.UIKit.UIDevice
64

75
actual fun platformName(): String {
8-
return "iOS"
6+
7+
return UIDevice.currentDevice.systemName() +
8+
" " +
9+
UIDevice.currentDevice.systemVersion
910
}
11+
12+
13+
14+
//https://stackoverflow.com/a/24505884

0 commit comments

Comments
 (0)