Posts

Post marked as solved
8 Replies
2.1k Views
I'm trying to use several MapViews in my swiftui list (Xcode 11.2.1). It seems to be Ok to have 4 MapViews but 5 is too much. I get "precondition failure: invalid value type for attribute: 102" with 5 MapViews. Any ideas? Simplified code below.import SwiftUIimport MapKitstruct ContentView: View { var body: some View { List { MapView().frame(height: 300) MapView().frame(height: 300) MapView().frame(height: 300) MapView().frame(height: 300) MapView().frame(height: 300) //This is too much... } }}struct MapView: UIViewRepresentable { func makeUIView(context: Context) -> MKMapView { MKMapView() } func updateUIView(_ view: MKMapView, context: Context) { }}
Posted
by keijo.
Last updated
.
Post marked as solved
4 Replies
2.1k Views
I'm able to use nonAR (virtual reality) mode of the RealityKit with following initialization: arView.cameraMode = .nonAR let config = ARWorldTrackingConfiguration() config.planeDetection = .horizontal arView.session.run(config, options: [])... but obviously ARWorldTrackingConfiguration is not a good idea in nonAR. How should I initialize it properly? I see nothing if I only set the cameraMode (without additional configuration).
Posted
by keijo.
Last updated
.