以编程方式打开默认提醒应用程序

Open default Reminder app programatically

我正尝试在单击按钮时打开 iOS 提醒应用程序。

@IBAction private func btnReminderTapped(_ sender: UIButton){
    
    if let url = URL(string: "x-apple-reminder://"), UIApplication.shared.canOpenURL(url) {
        UIApplication.shared.open(url, options: [:]) { (isDone) in
            
        }
    }
}

我在控制台中单击按钮,我看到以下日志:

-canOpenURL: failed for URL: "x-apple-reminder://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

如何以编程方式打开提醒应用程序?

将url更改为x-apple-reminderkit://