更改可操作的推送通知按钮颜色和字体

Change actionable push notification button color and font

我在我的应用程序中实现了可操作的推送通知,并且运行良好。我有两个动作 "YES" 和 "NO"。我想用红色显示 "NO" 按钮字体。谁能告诉我如何自定义这些按钮

   let yesAction = UNNotificationAction(identifier: "Yes", title: "YES", options: [.foreground])
   let noAction = UNNotificationAction(identifier: "no", title: "NO")
  • 破坏性

通过传入破坏性选项,该操作会在视觉上突出显示,以向用户表明该操作具有破坏性。

我无法自定义,但上面的选项解决了我的要求。