Post

Replies

Boosts

Views

Activity

Comment on How do MTKView/CAMetalLayer and extended colorspaces work?
Thanks for those information. I have a follow-up question: How does gamut-matching work in Metal? I know that some classes that have the "ColorSpace" property like CIImage and CGImage, and also there are methods to get it from CVPixelBuffer. But when creating MTLTexture from one of those "images" mentioned above, what color space is the result texture in? Does Metal do color management when sampling the texture to make sure the Float we get is in linear space?
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’25
Comment on App randomly be terminated due to Capture Application Requirements Unmet
Update: the workaround doesn't work and I have already found the way to reproduce this issue: Enter some pages on your app that don't access the camera, like the settings page or gallery page. Put the app in the background, and launch it using the Camera Control. After launching the app, the app will still stay in the last page that doesn't use camera. Wait for a few seconds and the app will be terminated with the log mentioned above.
Nov ’24
Comment on How do MTKView/CAMetalLayer and extended colorspaces work?
Thanks for those information. I have a follow-up question: How does gamut-matching work in Metal? I know that some classes that have the "ColorSpace" property like CIImage and CGImage, and also there are methods to get it from CVPixelBuffer. But when creating MTLTexture from one of those "images" mentioned above, what color space is the result texture in? Does Metal do color management when sampling the texture to make sure the Float we get is in linear space?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’25
Comment on App randomly be terminated due to Capture Application Requirements Unmet
Update: the workaround doesn't work and I have already found the way to reproduce this issue: Enter some pages on your app that don't access the camera, like the settings page or gallery page. Put the app in the background, and launch it using the Camera Control. After launching the app, the app will still stay in the last page that doesn't use camera. Wait for a few seconds and the app will be terminated with the log mentioned above.
Replies
Boosts
Views
Activity
Nov ’24
Comment on ControlWidget fails to render Image with asset image in a ControlWidgetButton
Thanks for the tip. I would try creating a custom SF Symbol.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Sep ’24
Comment on WidgetBundleBuilder crash on #available(iOS 18.0) check: WidgetBundleBuilder includes an unknown OS version
I ran into the same issue and the workaround above works. However it's still need to be fixed and here is my feedback ID: FB14946405
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on ControlWidget fails to render Image with asset image in a ControlWidgetButton
Did it work in the previous beta? I have no idea since I started work on this feature recently. Hope they can fix that.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Aug ’24
Comment on LockedCameraCapture - Lock Screen Camera Capture UI Question
Do you miss adding AVCaptureEventInteraction to your app? I think you should add the AVCaptureEventInteraction to detect the hardware interaction and in this case the extension won't close after 10 seconds.
Replies
Boosts
Views
Activity
Aug ’24