Refined the recording Live Activity presentation in the Widget target.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import Commanding
|
||||
import AppIntents
|
||||
import Commanding
|
||||
|
||||
/// The intent behind the discard button of the recording Live Activity, which throws the recording away.
|
||||
///
|
||||
@@ -10,9 +10,14 @@ struct DiscardRecordingIntent: LiveActivityIntent {
|
||||
|
||||
// MARK: Constants
|
||||
|
||||
static let title: LocalizedStringResource = "Discard Recording"
|
||||
static let description = IntentDescription("Throws the paused recording away.")
|
||||
static let openAppWhenRun = false
|
||||
/// The localized title of the intent, resolved from the widget target's string catalog and shown wherever the system surfaces
|
||||
/// the intent.
|
||||
static let title: LocalizedStringResource = "intent.discard-recording.title"
|
||||
/// The localized description of the intent, resolved from the widget target's string catalog.
|
||||
static let description = IntentDescription("intent.discard-recording.description")
|
||||
/// Whether running the intent brings the app to the foreground; `true`, so discarding the recording opens the app from the
|
||||
/// Live Activity.
|
||||
static let openAppWhenRun = true
|
||||
|
||||
// MARK: Methods
|
||||
|
||||
|
||||
Reference in New Issue
Block a user