'How can I display a suppression checkbox in an iOS SwiftUI alert?

Is there a way to display a suppression checkbox in a SwiftUI alert in an iOS app similar to the suppression button in MacOS:

showsSuppressionButton

This is a checkbox that the user will check to not see the alert again.

I know I can implement a custom view but wondering if there is a built in way to do that before I go to the custom view.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source