Skip to content

Add visionOS support#22

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

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

Conversation

@lucamegh
Copy link
Contributor

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
Contributor 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?

Copy link
Contributor

Choose a reason for hiding this comment

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

Don't think so. QuickLayoutBridge uses UIKit, so it won't compile on macOS.

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

Choose a reason for hiding this comment

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

Here too.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could be done with a refactoring but QuickLayoutCore has few dependencies to UIKit.

}
}
#endif
return scale
Copy link
Contributor 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.

@meta-codesync
Copy link

meta-codesync bot commented Feb 20, 2026

@constantine-fry has imported this pull request. If you are a Meta employee, you can view this in D93882203.

@meta-codesync meta-codesync bot closed this in 56da492 Feb 27, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 27, 2026

@constantine-fry merged this pull request in 56da492.

@constantine-fry
Copy link
Contributor

@lucamegh thank you for making the pull request. Much appreciate it.

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.

3 participants