Fix compilation issues when building SwiftUI Previews for macOS.

This commit is contained in:
Zandor Smith
2023-12-28 22:18:33 +01:00
parent 43a9f93886
commit fda7798dfd
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -11,8 +11,10 @@
#if os(watchOS)
import WatchKit
#else
#elseif canImport(UIKit)
import UIKit
#else
import Foundation
#endif
// MARK: Device
+3 -1
View File
@@ -299,8 +299,10 @@ watchOSDevices = watches
}%
#if os(watchOS)
import WatchKit
#else
#elseif canImport(UIKit)
import UIKit
#else
import Foundation
#endif
// MARK: Device