Skip to content

Commit

Permalink
add additional OS's
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Jul 6, 2024
1 parent 38074f6 commit a5d54a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/CareKitEssentials/Models/OSValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

// swiftlint:disable:next type_name
enum OS: String {
case iOS, watchOS, macOS
case iOS, watchOS, macOS, visionOS
}

@propertyWrapper
Expand All @@ -26,6 +26,8 @@ struct OSValue<Value> {
return values[.watchOS] ?? defaultValue
#elseif os(macOS)
return values[.macOS] ?? defaultValue
#elseif os(visionOS)
return values[.visionOS] ?? defaultValue
#else
return defaultValue
#endif
Expand Down

0 comments on commit a5d54a9

Please sign in to comment.