Skip to content

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