Skip to content

Commit

Permalink
Update PHPicker.swift
Browse files Browse the repository at this point in the history
Updated so it builds successfully for Mac Catalyst.
  • Loading branch information
edonv committed Jun 19, 2023
1 parent 1a27a07 commit 633c8fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftUIPHPicker/PHPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extension PHPicker: UIViewControllerRepresentable {
}
#endif

#if canImport(Cocoa)
#if canImport(Cocoa) && os(macOS)
import Cocoa

extension PHPicker: NSViewControllerRepresentable {
Expand Down Expand Up @@ -87,7 +87,7 @@ extension PHPicker {
}
#endif

#if canImport(Cocoa)
#if canImport(Cocoa) && os(macOS)
@available(macOS 13.0, *)
public func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {
picker.parent?.dismiss(picker)
Expand Down

0 comments on commit 633c8fd

Please sign in to comment.