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?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Has anyone used healthDataAccessRequest successfully in SwiftUI? How does parameter trigger work?
Is there a programming example for CameraView?
Converting
class Model: ObservableObject {
@AppStorage("prop0") var prop0 = 0
}
to
@Observable struct Model {
@AppStorage("prop0") var prop0 = 0
}
created error: Property wrapper cannot be applied to a computed property
How can properties of @Observable models be saved in user defaults?
I'm trying to convert s String property of a Sendable structure to LocalizedStringResource, so that Xcode extracts it into the string catalog. There is a warning since LocalizedStringResource is not Sendable currently.
How to enable developer mode on Apple Watch with watchOS 9 beta?
In SwiftUI, how to display a [Link<Text>]?
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))
}
The requestReview() method of SKStoreReviewController is deprecated in iOS 14 beta. There is a new requestReview(in windowScene: UIWindowScene), but with the App structure in SwiftUI, there is no UIWindowScene. How to request app review?
It seems an overlay is limited to the size of the base view. How to remove the limit?
baseView.overlay {overlayView}
How to get current time in a widget (like the builtin clock widget), to update the widget based on the current time, since a widget is supposed to provide timely info?
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
}
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?
How to block a sender in iMessage in iOS 15?