We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52242c7 commit 87c31c4Copy full SHA for 87c31c4
Sources/PowerSync/Kotlin/sync/UserAgent.swift
@@ -11,6 +11,8 @@ func userAgent() async -> String {
11
let osName = "watchOS"
12
#elseif os(iOS)
13
let osName = "iOS"
14
+#elseif os(tvOS)
15
+ let osName = "tvOS"
16
#else
17
let osName = "unknown"
18
#endif
@@ -20,7 +22,7 @@ func userAgent() async -> String {
20
22
21
23
// Returns the OS version string for the current platform
24
@MainActor func getOSVersion() async -> String {
-#if os(iOS)
25
+#if os(iOS) || os(tvOS)
26
// UIDevice must be accessed on the main actor
27
return UIDevice.current.systemVersion
28
0 commit comments