Post

Replies

Boosts

Views

Activity

RoomCapture Visualizer
In the WWDC video the code includes a reference to the visualizer object. var previewVisualizer: Visualizer! I'd like to create my own ViewController using RoomCaptureSession and incorporate the visualizer. This doesn't seem to be available in the RoomPlan framework, have I missed something or has this been removed from the public interface? Thanks
2
0
1.4k
Jun ’22
RoomPlan doesn't link
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
2
1
1.2k
Aug ’22
WeatherKit forecast dates - what are they?
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
7
1
2.7k
Feb ’23
LPMetadataProvider errors
Using the code below to fetch data for multiple urls I encounter a number of errors such as: 2021-12-01 20:20:32.090690-0500 foo[63170:6750061] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}> 021-12-01 20:20:32.115662-0500 yerl[63170:6749861] [ProcessSuspension] 0x10baf8cc0 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=63200, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit} I've added the following to my entitlements file:  <key>com.apple.security.network.client</key>     <true/> with no change in the result. I gather that these are errors from a WKWebView but don't know how to resolve them. @State private var metadataProvider: LPMetadataProvider? ... metadataProvider?.startFetchingMetadata(for: url) { (linkMetadata, error) in             guard let linkMetadata = linkMetadata, let imageProvider = linkMetadata.iconProvider else { return }             imageProvider.loadObject(ofClass: UIImage.self) { (fetchedImage, error) in                 if let error = error {                     print(error.localizedDescription)                     return                 }                 if let uiimage = fetchedImage as? UIImage {                     DispatchQueue.main.async {                         let image = Image(uiImage: uiimage)                         self.image = image                         print("cache: miss \(url.absoluteString)")                         model.set(uiimage, for: url)                     }                 } else {                     print("no image available for \(url.absoluteString)")                 }             }         } Thanks in advance.
2
0
1.7k
Dec ’22
Disable scrolling in SwiftUI List?
Hi, is it possible to disable scrolling behavior in the SwiftUI List view? I'd like to take advantage of the new grouping features List(content, children: \.children)  in List and want the list to be part of a larger scrolling view. As it stands I get an embedded scroll view for the list which is not my intent. Thanks!
4
0
5.8k
Jan ’23