From 093fd84983979a73c165b05bec377ccf83c4ddae Mon Sep 17 00:00:00 2001 From: kean Date: Tue, 3 Sep 2024 18:52:03 -0400 Subject: [PATCH] Add visionOS to package --- .../xcschemes/Pulse Demo macOS.xcscheme | 84 ------------------- Package.swift | 3 +- .../RichTextView/RichTextViewModel.swift | 2 +- 3 files changed, 3 insertions(+), 86 deletions(-) delete mode 100644 Demo/Pulse.xcodeproj/xcshareddata/xcschemes/Pulse Demo macOS.xcscheme diff --git a/Demo/Pulse.xcodeproj/xcshareddata/xcschemes/Pulse Demo macOS.xcscheme b/Demo/Pulse.xcodeproj/xcshareddata/xcschemes/Pulse Demo macOS.xcscheme deleted file mode 100644 index 838c46ae1..000000000 --- a/Demo/Pulse.xcodeproj/xcshareddata/xcschemes/Pulse Demo macOS.xcscheme +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Package.swift b/Package.swift index 2154c7911..f53b9571c 100644 --- a/Package.swift +++ b/Package.swift @@ -7,7 +7,8 @@ let package = Package( .iOS(.v15), .tvOS(.v15), .macOS(.v12), - .watchOS(.v8) + .watchOS(.v8), + .visionOS(.v1) ], products: [ .library(name: "Pulse", targets: ["Pulse"]), diff --git a/Sources/PulseUI/Features/FileViewer/RichTextView/RichTextViewModel.swift b/Sources/PulseUI/Features/FileViewer/RichTextView/RichTextViewModel.swift index 8adcfa476..02a2d8248 100644 --- a/Sources/PulseUI/Features/FileViewer/RichTextView/RichTextViewModel.swift +++ b/Sources/PulseUI/Features/FileViewer/RichTextView/RichTextViewModel.swift @@ -57,7 +57,7 @@ final class RichTextViewModel: ObservableObject { }.store(in: &cancellables) } - func prepare(_ context: SearchContext?) { + func prepare(_ context: TextViewSearchContext?) { guard let context = context else { return } // Not updated self.searchTerm because searchable doesn't like that