Skip to content

Conversation

@davdroman
Copy link
Collaborator

@davdroman davdroman commented Jun 17, 2025

Explanation: #456 (comment)

Jonge and others added 3 commits June 16, 2025 10:45
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, *) {
Copy link
Collaborator Author

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, *) {
Copy link
Collaborator Author

@davdroman davdroman Jun 17, 2025

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, *) {
Copy link
Collaborator Author

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.

@davdroman davdroman merged commit c2b0625 into main Jun 17, 2025
17 checks passed
@davdroman davdroman deleted the fix-2026-availability-checks branch June 17, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants