Post

Replies

Boosts

Views

Activity

Reply to Possible to access AVCaptureSession?
we can access to AVCaptureDevice with new API Introduced if let device = ARWorldTrackingConfiguration.configurableCaptureDeviceForPrimaryCamera { do { try device.lockForConfiguration() // configure AVCaptureDevice settings … device.unlockForConfiguration() } catch { // error handling … } } For more please checkout WWDC22 at 12:35
Topic: Spatial Computing SubTopic: ARKit Tags:
Dec ’23
Reply to How to know if a .fileImporter/.fileExporter got dismissed?
/// In order for the interface to appear, both isPresented must be true /// and document must not be nil. When the operation is finished, /// isPresented will be set to false before onCompletion is called. /// If the user cancels the operation, isPresented will be set to false and onCompletion will not be called. `public func fileExporter<D>(isPresented: Binding<Bool>, document: D?, contentType: UTType, defaultFilename: String? = nil, onCompletion: @escaping (_ result: Result<URL, Error>) -> Void) -> some View where D : FileDocument` So we can observe change of isPresented Binding .onChange(of: DownloadManager.isShowingFileExporterForZip, perform: { newValue in // If the user cancels the operation, `isPresented` will be set to `false` if newValue == false { DownloadManager.exportableZipDocument = nil } })
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23
Reply to RealityKit/ARKit Environment Texturing broken on iOS 18
The good news is on iOS 18.2 it started working as expected. @arthurfromberlin @JaumeCalm
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to Possible to access AVCaptureSession?
we can access to AVCaptureDevice with new API Introduced if let device = ARWorldTrackingConfiguration.configurableCaptureDeviceForPrimaryCamera { do { try device.lockForConfiguration() // configure AVCaptureDevice settings … device.unlockForConfiguration() } catch { // error handling … } } For more please checkout WWDC22 at 12:35
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Xcode not working on macOS Sonoma
One of the working solution for running Xcode 14 on Sonoma https://developer.apple.com/forums/thread/734709
Replies
Boosts
Views
Activity
Dec ’23
Reply to Guided Capture sample - broken with iOS17 beta 4
@NavidF If we use @Environment AppDataModel.... AppDataModel need to adopt @Observable macro and I believe @Observable macro is not working with Xcode 15 beta 5.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Xcode 15 beta 5 External macro implementation type 'ObservationMacros.ObservableMacro' could not be found for macro 'Observable()
Yes even their sample app of Observable having this issue (in Beta 5) so looks like we need to wait until they fixed it.
Replies
Boosts
Views
Activity
Jul ’23
Reply to How to know if a .fileImporter/.fileExporter got dismissed?
/// In order for the interface to appear, both isPresented must be true /// and document must not be nil. When the operation is finished, /// isPresented will be set to false before onCompletion is called. /// If the user cancels the operation, isPresented will be set to false and onCompletion will not be called. `public func fileExporter<D>(isPresented: Binding<Bool>, document: D?, contentType: UTType, defaultFilename: String? = nil, onCompletion: @escaping (_ result: Result<URL, Error>) -> Void) -> some View where D : FileDocument` So we can observe change of isPresented Binding .onChange(of: DownloadManager.isShowingFileExporterForZip, perform: { newValue in // If the user cancels the operation, `isPresented` will be set to `false` if newValue == false { DownloadManager.exportableZipDocument = nil } })
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Camera macro control
Yes there is API videoCaptureDevice.videoZoomFactor = videoZoomFactor videoCaptureDevice.setPrimaryConstituentDeviceSwitchingBehavior(.locked, restrictedSwitchingBehaviorConditions: [])
Replies
Boosts
Views
Activity
Mar ’23
Reply to Server-to-Server notification for Non-renewing subscription not working?
We can now test refund in sandbox and also expecting to receive notification on refund cycle of consumable in-app purchase here is video for reference.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Sensor fusion algorithm in Core Motion?
You can check this video this is in-depth explanation of core motion and sensor fusion algorithm this might help.[https://developer.apple.com/devcenter/download.action?path=/videos/wwdc_2012__hd/session_524__understanding_core_motion.mov]
Replies
Boosts
Views
Activity
Dec ’21