-
Notifications
You must be signed in to change notification settings - Fork 376
Fix 2026 availability checks #463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
if #available(tvOS 26, *) { | ||
// Apps built before the tvOS 26 SDK get "19.0" as the system version from ProcessInfo. | ||
// Once built with the tvOS 26 SDK, the version then becomes "26.0". | ||
if #available(tvOS 19, *) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know this for sure, I'm just assuming based on what the iOS SDK does. In any case it's safe to do as tvOS 19 will never actually exist.
if #available(macOS 26, *) { | ||
// Apps built before the macOS 26 SDK get "16.0" as the system version from ProcessInfo. | ||
// Once built with the macOS 26 SDK, the version then becomes "26.0". | ||
if #available(macOS 16, *) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know this for sure, I'm just assuming based on what the iOS SDK does. In any case it's safe to do as macOS 16 will never actually exist.
if #available(visionOS 26, *) { | ||
// Apps built before the visionOS 26 SDK get "3.0" as the system version from ProcessInfo. | ||
// Once built with the visionOS 26 SDK, the version then becomes "26.0". | ||
if #available(visionOS 3, *) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know this for sure, I'm just assuming based on what the iOS SDK does. In any case it's safe to do as visionOS 3 will never actually exist.
Explanation: #456 (comment)