Post not yet marked as solved
I want to adjusts the color saturation of swiftUI view to 0%.
In iOS 17 widgets, it doesn't work however it is working fine for widgets in iOS16 and prior and in application target
Post not yet marked as solved
We are using Intent for app shortcuts which allows user to select name from array of string. In the intent, there is only one parameter name.
After migrating to app intent, it does not preserve the name of existing shortcut and every time it asks for the name.
For example, I have an existing app shortcuts with name "Book 1". After migrating to AppIntent, if I run same shortcut, it ask for the name again. We are passing same books array in DynamicOptionsProvider and provideNameOptionsCollection method.. Here is the code:
@available(iOS 16.0, *)
struct CreateBook: AppIntent, CustomIntentMigratedAppIntent, PredictableIntent {
static let intentClassName = "BookIntent" // Intent name: Book
static var title: LocalizedStringResource = "Book"
static var description = IntentDescription("Book")
@Parameter(title: "Name", optionsProvider: BookNamesOptionsProvider())
var name: String?
private struct BookNamesOptionsProvider: DynamicOptionsProvider {
func results() async throws -> [String] {
["Book 1", "Book 2"]
}
}
static var parameterSummary: some ParameterSummary {
Summary("Create \(\.$name)")
}
static var predictionConfiguration: some IntentPredictionConfiguration {
IntentPrediction(parameters: (\.$name)) { name in
DisplayRepresentation(
title: "Create \(name!)",
subtitle: "Create Book"
)
}
}
func perform() async throws -> some IntentResult {
...
}
}
Post not yet marked as solved
I want to create a circular gauge view without dot indicator on it.
Post not yet marked as solved
We have an Intent configurable widgets in our app that allows user to choose theme for widget.
After adopting App Intent for widget configuration, existing widget does not preserve the selected theme and it resets the value.
Post not yet marked as solved
Getting an error when import AppIntents framework to project.
Command ExtractAppIntentsMetadata failed with a nonzero exit code