Skip to content

Commit

Permalink
feat: add limited support in smithy-swift for visionOS (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
dayaffe authored Oct 20, 2023
1 parent f6c8bc8 commit 62ad3a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/ClientRuntime/Util/PlatformOperatingSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public enum PlatformOperatingSystem: String {
case macOS
case watchOS
case tvOS
case visionOS
case unknown
}

Expand All @@ -28,6 +29,8 @@ public var currentOS: PlatformOperatingSystem {
return .windows
#elseif os(tvOS)
return .tvOS
#elseif os(visionOS)
return .visionOS
#else
#error("Cannot use a an operating system we do not support")
#endif
Expand Down

0 comments on commit 62ad3a2

Please sign in to comment.