Skip to content

Commit

Permalink
Add platform description
Browse files Browse the repository at this point in the history
  • Loading branch information
Hengyu committed Dec 5, 2023
1 parent 4f0ff24 commit c791514
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c791514

Please sign in to comment.