Код: Выделить всё
import Foundation
import AppIntents
struct DoNothing: AppIntent {
static let title: LocalizedStringResource = "[デモアプリ]アプリを開く"
static var openAppWhenRun: Bool = true
@MainActor
func perform() async throws -> some IntentResult {
return .result()
}
static var parameterSummary: some ParameterSummary {
Summary("Open App")
}
}
Подробнее здесь: https://stackoverflow.com/questions/781 ... ios-widget