We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a4f0d1 commit 5315db1Copy full SHA for 5315db1
Samples/iOS-Swift/iOS-Swift/ExtraViewController.swift
@@ -350,10 +350,18 @@ class ExtraViewController: UIViewController {
350
}
351
352
@IBAction func showFeedbackWidget(_ sender: Any) {
353
- SentrySDK.showFeedbackWidget()
+ if #available(iOS 13.0, *) {
354
+ SentrySDK.showFeedbackWidget()
355
+ } else {
356
+ showToast(in: self, type: .warning, message: "Feedback widget only available in iOS 13 or later.")
357
+ }
358
359
360
@IBAction func hideFeedbackWidget(_ sender: Any) {
- SentrySDK.hideFeedbackWidget()
361
362
+ SentrySDK.hideFeedbackWidget()
363
364
365
366
367
0 commit comments