The RoomCaptureView seems to have a coaching controller analogous to the ARCoachingOverlayView. The content is available via
public func captureSession(_ session: RoomCaptureSession, didProvide instruction: RoomCaptureSession.Instruction)
Is the view that presents these instructions available if not using the RoomCaptureView?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
Hi, When I import a USDZ from the RoomPlan demo code into Blender it results in no geometry. Xcode has no problem with the model, on the other hand, nor does Preview. Has anyone else had this issue? Apparently the Forum won't let me upload a model here.
I'm suddenly getting link errors on the RoomPlan framework. Even the Apple sample code is not building. I'm on 13.0 Beta (22A5311f) with Xcode Version 14.0 beta 3 (14A5270f) on a Mac Studio. Is anyone else seeing this?
dyld[1232]: Symbol not found: _$s8RoomPlan08CapturedA0V6export2toy10Foundation3URLV_tKF
Referenced from: <24F0F645-03CF-3834-BB80-F51E9CAEC10D> /private/var/containers/Bundle/Application/041C1232-EE67-42F3-AE47-F351FE81CE9A/RoomPlanExampleApp.app/RoomPlanExampleApp
Expected in: <FFA44726-2CCB-3BE3-ABDE-26B7F6214D68> /System/Library/Frameworks/RoomPlan.framework/RoomPlan
Symbol not found: _$s8RoomPlan08CapturedA0V6export2toy10Foundation3URLV_tKF
Referenced from: <24F0F645-03CF-3834-BB80-F51E9CAEC10D> /private/var/containers/Bundle/Application/041C1232-EE67-42F3-AE47-F351FE81CE9A/RoomPlanExampleApp.app/RoomPlanExampleApp
Expected in: <FFA44726-2CCB-3BE3-ABDE-26B7F6214D68> /System/Library/Frameworks/RoomPlan.framework/RoomPlan
dyld config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
I don’t understand what the times are that are returned in forecasts.
guard let (current, hourly, daily) = try? await weatherService.weather(for: location, including: .current, .hourly, .daily(startDate: startDate, endDate: endDate))
I’m expecting this to be the time to which the forecast applies.
let utc = hourly.forecast[hour].date
When I convert it from UTC to local time I get something unusual for localDate
let dateFormatter = DateFormatter()
dateFormatter.timeZone = TimeZone.current
dateFormatter.dateFormat = "ha"
let localDateString = dateFormatter.string(from: utc)
What are these times? Shouldn’t the hourly be times increasing in one hour increments from startDate? Am I doing something incorrectly?
Thanks
The pitch slider is not supported on tvOS yet it displays when using the Map() view. Does anyone know how to hide it? It's really getting in the way of my UI.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Why is the pitch slider always visible in the SwiftUI tvOS map view? It doesn't even appear to be supported there, let alone the fact that I specify mapControlVisibility(.hidden). Am I missing something or is Apple? See attached screenshot. This really messes up my UI.
Here is my code:
import SwiftUI
import MapKit
struct ContentView: View {
@State var position = MapCameraPosition.region(MKCoordinateRegion(
center: CLLocationCoordinate2D(latitude: 37.7749, longitude: -122.4194),
span: MKCoordinateSpan(latitudeDelta: 0.05, longitudeDelta: 0.05)))
var body: some View {
Map(position: $position)
.mapControlVisibility(.hidden)
.mapStyle(.standard(pointsOfInterest: .including(.airport)))
}
}
Has anyone gotten custom buttons to work on top of tvOS Map()? I've tried many variations of
FocusState
focusSection
.defaultFocus()
and as soon as the map appears at startup the buttons never get focus again. They are on a ZStack over the map. I could post code but truthfully nothing works for me. I'm wondering if anyone has successfully put focusable buttons on top of the map view.