BlueWallet/ios/Widgets/WalletAppShortcuts.swift
Marcos Rodriguez Velez d4aeba9737 wip
2024-10-29 19:33:26 -04:00

30 lines
1.1 KiB
Swift

//
// WalletAppShortcuts.swift
// BlueWallet
//
// Created by Marcos Rodriguez on 10/27/24.
// Copyright © 2024 BlueWallet. All rights reserved.
//
import AppIntents
@available(iOS 16.4, *)
struct WalletAppShortcuts: AppShortcutsProvider {
@AppShortcutsBuilder
static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: PriceIntent(),
phrases: [
AppShortcutPhrase<PriceIntent>("Market rate for Bitcoin in \(\.$fiatCurrency) using BlueWallet"),
AppShortcutPhrase<PriceIntent>("Get the current Bitcoin market rate in \(\.$fiatCurrency) with BlueWallet"),
AppShortcutPhrase<PriceIntent>("What's the current Bitcoin rate in \(\.$fiatCurrency) using BlueWallet?"),
AppShortcutPhrase<PriceIntent>("Show me the current Bitcoin price in \(\.$fiatCurrency) via BlueWallet"),
AppShortcutPhrase<PriceIntent>("Retrieve Bitcoin rate in \(\.$fiatCurrency) from BlueWallet")
],
shortTitle: "Market Rate",
systemImageName: "bitcoinsign.circle"
)
}
}