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:
set build.xcconfig:
NS_SWIFTUI_BOOT = 1
Add App_Resources/iOS/src/NativeScriptApp.swift with the following:
import SwiftUI
@main
struct NativeScriptApp: App {
var body: some Scene {
NativeScriptMainWindow()
}
}
Enable embedded flag on boot, for example in Angular apps it can be enabled with:
npm run build-ios
andnpm run build-vision
build.xcconfig
:App_Resources/iOS/src/NativeScriptApp.swift
with the following: