Skip to content

Commit

Permalink
Fix compilation issues when building SwiftUI Previews for macOS. (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zandor300 authored Jan 15, 2024
1 parent cbcb39b commit 4cc2dff
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 4cc2dff

Please sign in to comment.