Post

Replies

Boosts

Views

Activity

Comment on StoreKit 2 - AppTransaction.originalAppVersion confusion
I have recently migrated to freemium model and can confirm that I am only getting build version (not app version). So I have set the build version to a high number like 11 and it works. Original purchase date also seems to be working, though I am getting some 2013 users but my app has been around since 2012. My own device through which I bought the app reports 2018, which seems correct.
Topic: App & System Services SubTopic: StoreKit Tags:
Jan ’24
Comment on Checking authorization status of AVCaptureDevice or CLLocation Manager gives runtime warnings in iOS 18
Hello Argun, thanks for the response. Well the issue is its not documented anywhere that these statuses can not be checked on the main thread. I will try pushing them to background thread. But what about checking (AVAudioSession.sharedInstance().category == .playback) giving error Hangs - Interprocess communication on the main thread can cause non-deterministic delays. ?
Dec ’24
Comment on AVCaptureDevice rotationCoordinator modifying CALayer on switching devices
@Media Engineer Yes, rotationCoordinator is an instance variable in the class which is an actor. Therefore it will get deallocated off the main thread(on actor's serial queue). But it happens the same way in AVCam sample code (where AVCaptureVideoPreviewLayer is used). We don't see this issue in AVCam sample code even though rotationCoordinator gets deallocated on the actor's serial queue. I shall submit a bug soon.
Feb ’25
Comment on StoreKit 2 - AppTransaction.originalAppVersion confusion
I have recently migrated to freemium model and can confirm that I am only getting build version (not app version). So I have set the build version to a high number like 11 and it works. Original purchase date also seems to be working, though I am getting some 2013 users but my app has been around since 2012. My own device through which I bought the app reports 2018, which seems correct.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on StoreKit 2/StoreKit for Paid to Fremium Migration
VPP users ARE facing issues I can confirm.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Selecting Metal 3.2 as language causes crash on iPhone 11 Pro (iOS 17.1.1)
That requires modifying hundreds of CI kernel methods, not a good workaround.
Replies
Boosts
Views
Activity
Oct ’24
Comment on Tap Gesture on Subview disables drag gesture on super view
But I have gestures on separate views in this case, I don't know how to adapt this solution.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on Unable to build Core Image kernels in XCode 16
Only solution is to undo all stitchable kernels and go back to extern "C" kernels. Irritating and involves too much work if you have hundreds of Kernels.
Replies
Boosts
Views
Activity
Oct ’24
Comment on Checking authorization status of AVCaptureDevice or CLLocation Manager gives runtime warnings in iOS 18
Hello Argun, thanks for the response. Well the issue is its not documented anywhere that these statuses can not be checked on the main thread. I will try pushing them to background thread. But what about checking (AVAudioSession.sharedInstance().category == .playback) giving error Hangs - Interprocess communication on the main thread can cause non-deterministic delays. ?
Replies
Boosts
Views
Activity
Dec ’24
Comment on AVCam sample code build errors in Swift 6
Hello @DTS Engineer Thanks for the answer. I have gone ahead and filed two enhancements suggestions.
Replies
Boosts
Views
Activity
Jan ’25
Comment on AVCaptureDevice rotationCoordinator modifying CALayer on switching devices
Thanks for the answer, but to move these operations to main thread, I will need to move off AVCaptureDevice to main thread (out of the actor context). How do I solve it?
Replies
Boosts
Views
Activity
Feb ’25
Comment on AVCaptureDevice rotationCoordinator modifying CALayer on switching devices
Ok I was able to fix it by running the method on main thread, marking all these properties inside the actor with @MainActor, grabbed a copy of AVCaptureDevice and used it in the main thread. Not sure if it is 100% correct as AVCaptureDevice is not sendable.
Replies
Boosts
Views
Activity
Feb ’25
Comment on AVCaptureDevice rotationCoordinator modifying CALayer on switching devices
@Media Engineer Yes, rotationCoordinator is an instance variable in the class which is an actor. Therefore it will get deallocated off the main thread(on actor's serial queue). But it happens the same way in AVCam sample code (where AVCaptureVideoPreviewLayer is used). We don't see this issue in AVCam sample code even though rotationCoordinator gets deallocated on the actor's serial queue. I shall submit a bug soon.
Replies
Boosts
Views
Activity
Feb ’25
Comment on AVCaptureDevice rotationCoordinator modifying CALayer on switching devices
@Media Engineer FB16464516 has been filed.
Replies
Boosts
Views
Activity
Feb ’25
Comment on SwiftUI infinite loop issue with @Environment(\.verticalSizeClass)
@DTS Engineer Thanks for answering, it works but onReceive only works on the view. I have to manage lot of state changes and they are best kept inside a View Model class than cluttering the view. Also, I see the same issue with AVPlayerViewController within a UIViewControllerRepresentable.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Comment on SwiftUI infinite loop issue with @Environment(\.verticalSizeClass)
Yes, it has to do with @Observable and also a bug in iOS where second instance of State variable is leaked. I am not sure why SwiftUI is recreating State variable again on initialisation (this does not happen with ObservableObject and StateObject) . Details can be found on this answer on SO.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Comment on New AVCam sample code hanging in XCode 26 debugger
Well its the standard AVCam sample code (latest) run on XCode 26 beta. Do I still need to go through the painful process of filing a bug report?
Replies
Boosts
Views
Activity
Jun ’25
Comment on SwiftUI scroll position targeting buggy with viewAligned scrollTargetBehavior
The way I got it working is removing the .safeAreaPadding from the VStack and applying vertical .contentMargins to the ScrollView instead, plus giving all ticks same height. Still need to understand what's going on in your code which makes it working, and more importantly, what failed in my code and why.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’25