From d2abff21244e036ca0b1ef870fdf4c09e509938c Mon Sep 17 00:00:00 2001 From: Vincent Tourraine Date: Tue, 6 Feb 2024 13:25:23 +0100 Subject: [PATCH] Enable native visionOS support --- CHANGELOG.md | 5 +++++ Sources/AcknowList/AcknowListViewController.swift | 6 +++--- Sources/AcknowList/AcknowViewController.swift | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0496e51..70f0ab2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.1.1 (work in progress) + +- [x] Update `AcknowListViewController` and `AcknowViewController` to enable native visionOS support + + ## 3.1.0 (25 January 2024) - Add `GitHubAPI` to get licenses from GitHub API diff --git a/Sources/AcknowList/AcknowListViewController.swift b/Sources/AcknowList/AcknowListViewController.swift index a4555bf..805f5c1 100644 --- a/Sources/AcknowList/AcknowListViewController.swift +++ b/Sources/AcknowList/AcknowListViewController.swift @@ -23,15 +23,15 @@ import Foundation -#if os(iOS) || os(tvOS) +#if os(iOS) || os(tvOS) || os(visionOS) import UIKit #endif -#if os(iOS) +#if os(iOS) || os(visionOS) import SafariServices #endif -#if os(iOS) || os(tvOS) +#if os(iOS) || os(tvOS) || os(visionOS) /// Subclass of `UITableViewController` that displays a list of acknowledgements. @available(iOS 9.0.0, tvOS 9.0.0, *) @available(iOSApplicationExtension, unavailable) diff --git a/Sources/AcknowList/AcknowViewController.swift b/Sources/AcknowList/AcknowViewController.swift index 5516546..f15a292 100644 --- a/Sources/AcknowList/AcknowViewController.swift +++ b/Sources/AcknowList/AcknowViewController.swift @@ -21,7 +21,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -#if os(iOS) || os(tvOS) +#if os(iOS) || os(tvOS) || os(visionOS) import UIKit /// Subclass of `UIViewController` that displays a single acknowledgement.