From c791514defcf4b095180ddaf6bcbc804b46c2b7f Mon Sep 17 00:00:00 2001 From: hengyu Date: Tue, 5 Dec 2023 22:00:57 +0800 Subject: [PATCH] Add platform description --- Sources/FeedbackSwift/FeedbackEditing/FeedbackGenerator.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/FeedbackSwift/FeedbackEditing/FeedbackGenerator.swift b/Sources/FeedbackSwift/FeedbackEditing/FeedbackGenerator.swift index ff206da..1d79e21 100644 --- a/Sources/FeedbackSwift/FeedbackEditing/FeedbackGenerator.swift +++ b/Sources/FeedbackSwift/FeedbackEditing/FeedbackGenerator.swift @@ -116,12 +116,14 @@ struct FeedbackGenerator { private static func platform() -> String { let platform: String - #if targetEnvironment(macCatalyst) + #if targetEnvironment(macCatalyst) || os(macOS) platform = "macOS" #elseif os(tvOS) platform = "tvOS" #elseif os(watchOS) platform = "watchOS" + #elseif os(visionOS) + platform = "visionOS" #else platform = "iOS" #endif