Post

Replies

Boosts

Views

Activity

Reply to AppIntent complie issue & manual remove AppIntent dialog
@available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *) struct OpenPhotoRecognizing: AppIntent { static let title: LocalizedStringResource = "Read photo" static let description = IntentDescription("") static let openAppWhenRun: Bool = false @Parameter(title: "input photo") var inputPhoto: IntentFile? static var parameterSummary: some ParameterSummary { Summary { \.$inputPhoto } } func perform() async throws -> some IntentResult & OpensIntent { if let _ = inputPhoto { return .result(opensIntent: OpenAppIntent()) } return .result(opensIntent: MessageDialogIntent()) } } As shown in the above code, the subsequent two different types of intentions cannot be executed.
Topic: UI Frameworks SubTopic: General
May ’25