Skip to content

Add visionOS support#22

Open
lucamegh wants to merge 2 commits intofacebookincubator:mainfrom
lucamegh:visionos-support
Open

Add visionOS support#22
lucamegh wants to merge 2 commits intofacebookincubator:mainfrom
lucamegh:visionos-support

Conversation

@lucamegh
Copy link

No description provided.

@meta-cla meta-cla bot added the cla signed label Feb 14, 2026
dependencies: [
"QuickLayoutMacro",
.target(name: "QuickLayoutBridge", condition: .when(platforms: [.iOS, .macCatalyst])),
.target(name: "QuickLayoutBridge", condition: .when(platforms: [.iOS, .macCatalyst, .visionOS])),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't .macOS be added here as well?

dependencies: [
"FastResultBuilder",
.target(name: "QuickLayoutCore", condition: .when(platforms: [.iOS, .macCatalyst])),
.target(name: "QuickLayoutCore", condition: .when(platforms: [.iOS, .macCatalyst, .visionOS])),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too.

}
}
#endif
return scale
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there no equivalent to UIScreen.scale on visionOS, it's reasonable to return 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant