Post

Replies

Boosts

Views

Activity

Reply to How can I hide dot indicator from swiftUI Gauge view?
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%.
Jul ’23
Reply to App Intent in separate target doesn't work
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.
Jun ’22