Post

Replies

Boosts

Views

Activity

Reply to Starting with iPhone 17, the output image of avcapturesession is displayed horizontally.
Not sure if this is what you are seeing, but for iphone17 make sure you are using the AVCaptureDevice.RotationCoordinator to get the angle to apply to the videoRotationProperty of your photo connection, so the images are oriented correctly. Look at the AVCam sample and search for RotationCoordinator to see how to use it: https://developer.apple.com/documentation/avfoundation/avcam-building-a-camera-app
Sep ’25
Reply to How to hide the tick marks on a SwiftUI Slider in iOS26
Looks like the ticks parameter is now exposed in beta4. An example from the Apple headers: @State private var percentage = 0.5 Slider(value: $percentage) { Text("Percentage") } currentValueLabel: { Text("\(percentage)%") } ticks: { SliderTickContentForEach( stride(from: 0.0, through: 1.0, by: 0.25).map { $0 }, id: \.self ) { value in SliderTick(value) { label(for: value) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’25
Reply to Camera become black for few propduction users during photo capture
There seems to be a potential bug in iOS that is causing black screen issues for 3rd party apps. We are seeing the same for our camera app where the capture session fails and the users have to reboot their devices to be able to capture photos. Others are seeing the same issue: https://developer.apple.com/forums/thread/785206 and I’ve seen other people on Twitter have the same problem across multiple apps trying to capture photos.
Jul ’25
Reply to Significant Uptick in AVCaptureSessionWasInterrupted (Reason 4) Leading to Camera Black Screen and AVError Code -11803
Did you figure this out? We are also getting reports from some of the users of our camera app that the preview remains black and they are unable to capture photos (iOS users, not sure if any iPad users had the issue as well). The only way to fix the issue is a full device reboot, restarting/re-installing the app doesn't fix the issue (it's like iOS has blacklisted the app and won't let it start a new session until the device is rebooted).
Jun ’25
Reply to Loading a DNG into CIRAWFilter and use HDR
I should note that I am settings the CIRAWFilter extendedDynamicRangeAmount to 2.0 before calling outputImage and still not getting a EDR image color space. e.g. guard let filter = CIRAWFilter( imageURL: rawURL, options: [:] ) else { return nil } filter.extendedDynamicRangeAmount = 2.0 // also tried 1.0 filter.outputImage?.colorSpace -> still SDR not EDR
Topic: UI Frameworks SubTopic: General Tags:
Mar ’25
Reply to Swift6 race warning
Thanks for taking a look. I tried some more things and it looks like it's a misleading compiler error, maybe nothing to do with the path variable at all even though the compiler says it is. I took the path variable out of the function temporarily, then it gave another error: "Task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode". The containing class is marked as @Observable, so I'm assuming really it is complaining that "self" is getting pulled into the Task which can cause race conditions even though the compiler error does not say that. I added the Sendable protocol to the container class and the warning went away. Thanks for taking the time to look into it. Side note: Swift6 makes writing code miserable, it's so broken still, good idea poor execution.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’25
Reply to [iOS 18] Colors from asset catalog render as pure white on tinted widgets
When you select tinted your widget is rendered in accented mode. Accented mode splits the UI elements into two groups, the default group and the accented group. Basically you only get two colors the accented group will get the tinted color the other group is white. You swap your UI elements between the groups using the widgetAccentable modifier: https://developer.apple.com/documentation/swiftui/view/widgetaccentable(_:) You can still apply an opacity to the UI elements if you want. If you want them to be the original color then you can use the https://developer.apple.com/documentation/widgetkit/widgetaccentedrenderingmode property but that only applies to Image elements.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’24
Reply to Widgets not working in iOS 17.2
We were also having this issue. It was recommended to make sure that any images you have aren't too big, ideally somewhere around the size of the widget dimensions, that should help fix this problem. Reducing the size of the images we were using as backgrounds to our widgets seems to have helped us.
Topic: App & System Services SubTopic: General Tags:
Jan ’24