https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

jordond

10/14/2023, 10:24 PM
Is there somewhere I can reference which platform APIs are available for each multiplatform target? For example for iOS
UIScreen
is available, but for macOS it isn’t available. I looked at the apple docs, and it says Mac 13+.
s

Sebastien Leclerc Lavallee

10/15/2023, 3:30 AM
For your specific example,
UIScreen
is only available for iOS/iPadOS because
UIKit
is only on these platform. For macOS, it’s called
NSScreen
from
AppKit
framework. But
UIScreen
is available on macOS throught Catalyst but it’s not directly macOS.
3 Views