mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
fix: shortcuts
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
import AppIntents
|
||||
import UIKit
|
||||
|
||||
import AppIntents
|
||||
import UIKit
|
||||
|
||||
@available(iOS 18.0, *)
|
||||
struct QuickAddIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Quick Add"
|
||||
static var description = IntentDescription("Open Logseq Quick Add")
|
||||
|
||||
/// 🔑 ensure the app is launched when this intent runs
|
||||
static var openAppWhenRun: Bool = true
|
||||
|
||||
func perform() async throws -> some IntentResult & OpensIntent {
|
||||
let url = URL(string: "https://logseq.com/mobile/go/quick-add")!
|
||||
return .result(opensIntent: OpenURLIntent(url))
|
||||
@@ -17,6 +23,8 @@ struct RecordAudioIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Record Audio"
|
||||
static var description = IntentDescription("Open Logseq Record Audio")
|
||||
|
||||
static var openAppWhenRun: Bool = true
|
||||
|
||||
func perform() async throws -> some IntentResult & OpensIntent {
|
||||
let url = URL(string: "https://logseq.com/mobile/go/audio")!
|
||||
return .result(opensIntent: OpenURLIntent(url))
|
||||
|
||||
Reference in New Issue
Block a user