Post

Replies

Boosts

Views

Activity

Reply to Use CoreImage filters on Vision Pro (visionOS) view
So far, there is no API in visionOS that allows developers access to the live video feed. This is by design, and most likely to protect the user's privacy: While on an iPhone you explicitly consent to sharing your surroundings with an app by pointing your camera at things, you can't really avoid that on the Apple Vision Pro.
Topic: Spatial Computing SubTopic: ARKit Tags:
Jan ’24
Reply to CIImage.clampedToExtent() doesn't fill some edges
I guess it has to do with the affine transform you apply to the image before you do the clampedToExtent(): As you can see, the output of the transform has non-integer extent. This probably creates a row of transparent pixels at the top of the image, that is then repeated when applying clampedToExtent(). To avoid this, you can calculate the scale factors for your transform separately for x and y to ensure that the resulting pixel size is integer. Alternatively, you can apply the clamping before you apply the affine transform.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’23
Reply to New option(.memoryTarget) in CIContextOption
From the comment in the header file: A NSNumber that specifies the maximum memory footprint (in megabytes) that the CIContext allocates for render tasks. Larger values could increase memory footprint while smaller values could reduce performance. It basically sets how much memory Core Image is allowed to use (roughly) during rendering. From what I observed, the default seems to be 256 MB.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’23
Reply to Apple Intellegence not working
It's not yet available: Apple Intelligence will be available in an upcoming beta. https://developer.apple.com/apple-intelligence/
Replies
Boosts
Views
Activity
Jun ’24
Reply to CIFormat static var
The static properties on CIFormat are lets now in iOS 18 / macOS 15. 👍
Replies
Boosts
Views
Activity
Jun ’24
Reply to Lossy option has no effect when exporting PNG to HEIF
I can confirm the issue (tested the Core Image API). Interestingly, the heif10Representation(...) API still works as expected.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to CAMetalLayer renders HDR images with a color shift
Did you set wantsExtendedDynamicRangeContent on the CAMetalLayer? What happens when you set the layer's colorSpace to some HDR color space? Also, make sure that you set the CIRenderDestinations colorSpace to the same space as the layer.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to Use CoreImage filters on Vision Pro (visionOS) view
So far, there is no API in visionOS that allows developers access to the live video feed. This is by design, and most likely to protect the user's privacy: While on an iPhone you explicitly consent to sharing your surroundings with an app by pointing your camera at things, you can't really avoid that on the Apple Vision Pro.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Sharing a JPEG via Action or Share Extension fails in Photos on macOS
Filed as FB13531865. Thanks!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Reset specific tip
I think there is no official API to reset single tips. As a workaround, you could change the id of the tip. This will cause TipKit to handle it as a new tip and show it again.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to CIImage.clampedToExtent() doesn't fill some edges
I guess it has to do with the affine transform you apply to the image before you do the clampedToExtent(): As you can see, the output of the transform has non-integer extent. This probably creates a row of transparent pixels at the top of the image, that is then repeated when applying clampedToExtent(). To avoid this, you can calculate the scale factors for your transform separately for x and y to ensure that the resulting pixel size is integer. Alternatively, you can apply the clamping before you apply the affine transform.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to arrowEdge of popoverTip not working anymore on iOS 17.1
Filed as FB13419598. Thanks!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Custom styles for popovertips
I was wondering the same thing, and it seems that improvements are coming in later versions.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to New option(.memoryTarget) in CIContextOption
From the comment in the header file: A NSNumber that specifies the maximum memory footprint (in megabytes) that the CIContext allocates for render tasks. Larger values could increase memory footprint while smaller values could reduce performance. It basically sets how much memory Core Image is allowed to use (roughly) during rendering. From what I observed, the default seems to be 256 MB.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to New option(.memoryTarget) in CIContextOption
There is also an Obj-C constant for it.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Xcode 15 [[stitchable]] Metal core image kernels fail
The -framework CoreImage flag needs to be set in two lines in Xcode, otherwise it will mask the space between the words:
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to [[stitchable]] Metal core image CIKernel fails to load
The -framework CoreImage flag needs to be set in two lines in Xcode, otherwise it will mask the space between the words:
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to iOS 17 Problems in getting RGB color from image
The order of the color channels in a CGImage depends on its alphaInfo and bitmapInfo. The default format for 8-bit images is actually BGRA (instead of RGBA) in many places. Where do you get the image from? What's its bitmapInfo and does it differ between iOS 16 and 17?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23