Код: Выделить всё
@available(iOS 16, *)
struct SelfieCameraIntent: AppIntent {
static let title : LocalizedStringResource = "Selfie Camera"
static let openAppWhenRun : Bool = true
@Parameter(title: "Open App")
var shouldOpenApp: Bool
@MainActor
func perform() async throws -> some IntentResult{
await UIApplication.shared.open(URL(string: "myApp://selfieCamera")!)
return .result()
}
}
Возможно ли это?
Заранее спасибо.>
Подробнее здесь: https://stackoverflow.com/questions/798 ... ion-shared
Мобильная версия