8000 Fix 2026 availability checks by davdroman · Pull Request #463 · siteline/swiftui-introspect · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 3 commits into from
Jun 17, 2025
Merged

Fix 2026 availability checks #463

merged 3 commits into from
Jun 17, 2025

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
Signed-off-by: David Jongepier <david.jongepier@ui.com>
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.

8000
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.

2 participants
0