Skip to content

Add visionOS support - #22

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

lucamegh wants to merge 2 commits into
facebook:mainfrom
lucamegh:visionos-support

Conversation

@lucamegh

Copy link
Copy Markdown
Contributor

No description provided.

@meta-cla meta-cla Bot added the cla signed label Feb 14, 2026
Comment thread Package.swift
dependencies: [
"QuickLayoutMacro",
.target(name: "QuickLayoutBridge", condition: .when(platforms: [.iOS, .macCatalyst])),
.target(name: "QuickLayoutBridge", condition: .when(platforms: [.iOS, .macCatalyst, .visionOS])),

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread Package.swift
dependencies: [
"FastResultBuilder",
.target(name: "QuickLayoutCore", condition: .when(platforms: [.iOS, .macCatalyst])),
.target(name: "QuickLayoutCore", condition: .when(platforms: [.iOS, .macCatalyst, .visionOS])),

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

meta-codesync Bot commented Feb 20, 2026

Copy link
Copy Markdown

@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

meta-codesync Bot commented Feb 27, 2026

Copy link
Copy Markdown

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

@constantine-fry

Copy link
Copy Markdown
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