Post

Replies

Boosts

Views

Activity

Turn off white balance
I'm trying to measure light quality with the camera, not to capture good looking photos. How do I get raw camera sensor data, without processing such as white balance? If I lock white balance mode when setting up capture session as following, will white balance be turned off during the session? if device.isWhiteBalanceModeSupported(.locked) { device.whiteBalanceMode = .locked }
0
0
586
Oct ’21
reloadTimelines failure
Calling reloadTimelines() on WidgetCenter.shared does not reload the timeline on my Apple Watch with watchOS 10.2 beta 2. Used to work in watchOS 10.1 and before. It does not work in iOS 17.2 beta 2 either. Do others see the same problem?
0
1
540
Nov ’23
Transaction revocationDate
When testing an auto-renewable subscription with StoreKit 2 in Xcode 13 beta 3, the purchase transaction revocationDate is 2001-01-01, which prevents the app to verify the subscription. It should be nil, since there is no simulation of refunding or revocation in the test. Is it a bug in StoreKit 2?
1
0
968
Jul ’21
Value based colors
How to create a chart where each data mark has a color based on its value? Like this chart: https://observablehq.com/@d3/gradient-encoding With the following code, the whole curve has one color only. My function Color.forTemperature() returns different colors for different temperatures. Chart(temperatures) { temperature in LineMark(     x: .value("Day", temperature.date, unit: .day),         y: .value("Temperature", temperature.value)     ) .foregroundStyle(Color.forTemperature(temperature.value)) }
2
0
1.7k
Jul ’22