File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import Foundation
12
12
import UIKit
13
13
#elseif os(macOS)
14
14
import Cocoa
15
- #else
15
+ #elseif canImport(WatchKit)
16
16
import WatchKit
17
17
#endif
18
18
@@ -79,7 +79,7 @@ class AutomaticProperties {
79
79
p [ " $ios_app_release " ] = infoDict [ " CFBundleShortVersionString " ]
80
80
}
81
81
p [ " $ios_device_model " ] = AutomaticProperties . deviceModel ( )
82
- #if !os(OSX) && !os(watchOS)
82
+ #if !os(OSX) && !os(watchOS) && !os(visionOS)
83
83
p [ " $ios_version " ] = UIDevice . current. systemVersion
84
84
#else
85
85
p [ " $ios_version " ] = ProcessInfo . processInfo. operatingSystemVersionString
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ struct InternalKeys {
37
37
}
38
38
39
39
40
- #if !os(OSX) && !os(watchOS)
40
+ #if !os(OSX) && !os(watchOS) && !os(visionOS)
41
41
extension UIDevice {
42
42
var iPhoneX : Bool {
43
43
return UIScreen . main. nativeBounds. height == 2436
You can’t perform that action at this time.
0 commit comments