I am facing the same issue. Tapping on a shortcut in the shortcuts app under the App Shortcuts section, shows below error:
Error Domain=LNActionFor- AutoShortcutPhraseFetchError Code=1 "No AutoShortcuts instance registered." UserInfo={NSLocalizedDescription=No AutoShortcuts instance registered.}
Here is my code:
struct OpenCurrentlyReading: AppIntent {
static var title: LocalizedStringResource = "Open Currently Reading"
func perform() async throws -> some PerformResult {
return .finished
}
static var openAppWhenRun: Bool = true
}
public struct LibraryAppShortcuts: AppShortcutsProvider {
public static var appShortcuts: [AppShortcut] {
AppShortcut (
intent: OpenCurrentlyReading(),
phrases: ["Open Currently Reading"],
systemImageName: "books.vertical.fill"
)
}
}
@main
struct FoodTruckAppShortcutsExtension: AppIntentsExtension {
}
However, same code is working fine for In-app Intents.
Post
Replies
Boosts
Views
Activity
Have you implemented AppShortcutsProvider protocol?
I'm facing same issue. It was working fine but not working in 14.0 beta 6.
AppShortcut(
intent: ShowBooks(),
phrases: ["Show Books"]
)
After updating phrases to phrases: ["\(.applicationName) Show Books"] it starts appearing.
Facing same issue. Are there any solution to fix the issue?
I am facing same issue in latest beta as well. Are there any solution?
I am facing same issue in latest beta as well. Does any one found the solution?
struct ContentView: View {
var body: some View {
ZStack {
Color.black
Gauge(value: 0.23) {
Image("droplet")
.renderingMode(.template)
.foregroundColor(.white)
} currentValueLabel: {
Text("23")
.foregroundStyle(.white)
}
.gaugeStyle(.accessoryCircular)
.tint(.white)
}
}
}
Above code shows gauge like this. But I don't want to show value indicator on ring which is showing at 23%.
Are there any resolution for the issue?
In iOS 18, the func getTimeline(in context: Context, completion: @escaping (Timeline<Entry>) -> ()) method of TimelineProvider is being called twice, which is causing an issue.
However, in iOS 17, it's calling only once.