Platform.ios.kt 325 字节
package org.example.project

import platform.UIKit.UIDevice

class IOSPlatform: Platform {
    override val name: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion
    override val brandname: String = UIDevice.currentDevice.model()
}

actual fun getPlatform(): Platform = IOSPlatform()