Skip to content

feat(visionos): support for xros platform#235

Merged
NathanWalker merged 70 commits into
mainfrom
feat/visionos
Apr 6, 2024
Merged

feat(visionos): support for xros platform#235
NathanWalker merged 70 commits into
mainfrom
feat/visionos

Conversation

@NathanWalker

@NathanWalker NathanWalker commented Jan 20, 2024

Copy link
Copy Markdown
Contributor
  • 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 Apr 3, 2024
@NathanWalker NathanWalker changed the title feat(visionos): support for xros platform with distinct project template to keep platforms independently managed 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

4 participants