Skip to content
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

feat(visionos): support for xros platform #235

Merged
merged 70 commits into from
Apr 6, 2024
Merged

feat(visionos): support for xros platform #235

merged 70 commits into from
Apr 6, 2024

Conversation

NathanWalker
Copy link
Contributor

@NathanWalker NathanWalker commented Jan 20, 2024

  • Splits the ios and vision templates and builds them independently via npm run build-ios and npm run build-vision
  • Allows an optional conditional app boot style between Objective C or SwiftUI, enabled by default on visionOS and can optionally be enabled on iOS apps with the following:
  1. set build.xcconfig:
NS_SWIFTUI_BOOT  = 1
  1. Add App_Resources/iOS/src/NativeScriptApp.swift with the following:
import SwiftUI

@main
struct NativeScriptApp: App {

    var body: some Scene {
        NativeScriptMainWindow()
    }
}
  1. Enable embedded flag on boot, for example in Angular apps it can be enabled with:
runNativeScriptAngularApp({
  embedded: true, // <-- this enables embedded mode
  appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),
});

@cla-bot cla-bot bot added the cla: yes label Jan 20, 2024
@NathanWalker NathanWalker changed the title feat: visionOS final support feat(visionos): support for xros platform with distinct project template to keep platforms independently managed Apr 3, 2024
@NathanWalker NathanWalker changed the title feat(visionos): support for xros platform with distinct project template to keep platforms independently managed feat(visionos): support for xros platform Apr 3, 2024
@triniwiz triniwiz self-requested a review April 5, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants