mirror of
https://github.com/devicekit/DeviceKit.git
synced 2026-05-17 10:20:34 +00:00
Fix compilation issues when building SwiftUI Previews for macOS.
This commit is contained in:
@@ -11,8 +11,10 @@
|
||||
|
||||
#if os(watchOS)
|
||||
import WatchKit
|
||||
#else
|
||||
#elseif canImport(UIKit)
|
||||
import UIKit
|
||||
#else
|
||||
import Foundation
|
||||
#endif
|
||||
|
||||
// MARK: Device
|
||||
|
||||
@@ -299,8 +299,10 @@ watchOSDevices = watches
|
||||
}%
|
||||
#if os(watchOS)
|
||||
import WatchKit
|
||||
#else
|
||||
#elseif canImport(UIKit)
|
||||
import UIKit
|
||||
#else
|
||||
import Foundation
|
||||
#endif
|
||||
|
||||
// MARK: Device
|
||||
|
||||
Reference in New Issue
Block a user