Post

Replies

Boosts

Views

Activity

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
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
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
English to English translation?
My app supports English and another language. The English string catalog is empty. Running the app in English in Xcode 15 beta 3, all strings are displayed in capital letters. It seems the behavior when translations are missing. Do we need to translate each English key into the same English translation, or is it a bug?
3
0
913
Jul ’23
File size limit?
I keep getting crashes with the following error in Xcode 15 beta 7: CoreData: debug: PostSaveMaintenance: fileSize 15009192 greater than prune threshold CoreData: annotation: PostSaveMaintenance: wal_checkpoint(TRUNCATE) Is 15M bytes too much data?
2
0
1.4k
Nov ’23
App group shared user defaults
In iOS 16 beta 3, my iOS app sets some strings in the shared user defaults of the app group. The iOS widget extension reads the strings from the shared user defaults correctly, but the watchOS app and watchOS widget extension could not read them (get nil). Integers stored in the shared user defaults can be read everywhere. All targets are in the same app group. Does anyone have similar problems?
7
0
6.3k
Aug ’23