Skip to content

Commit

Permalink
Fix compilation issues when building SwiftUI Previews for macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zandor300 committed Dec 28, 2023
1 parent 43a9f93 commit fda7798
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Source/Device.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

#if os(watchOS)
import WatchKit
#else
#elseif canImport(UIKit)
import UIKit
#else
import Foundation
#endif

// MARK: Device
Expand Down
4 changes: 3 additions & 1 deletion Source/Device.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,10 @@ watchOSDevices = watches
}%
#if os(watchOS)
import WatchKit
#else
#elseif canImport(UIKit)
import UIKit
#else
import Foundation
#endif

// MARK: Device
Expand Down

0 comments on commit fda7798

Please sign in to comment.