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 1d4d76a commit 8e86c53Copy full SHA for 8e86c53
WooCommerce/Classes/ViewRelated/Dashboard/Settings/Privacy/PrivacyBannerPresenter.swift
@@ -92,3 +92,15 @@ extension PrivacyBannerPresenter {
92
static let retry = NSLocalizedString("Retry", comment: "Retry title on the notice action button")
93
}
94
95
+
96
+extension BottomSheetViewController {
97
+ /// Temporary hack to prevent the `PrivacyBannerViewController` to be dismissed.
98
+ /// This should be changed once https://github.com/wordpress-mobile/WordPressUI-iOS/pull/126 is merged.
99
+ ///
100
+ public override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) {
101
+ if children.first is PrivacyBannerViewController {
102
+ return
103
+ }
104
+ super.dismiss(animated: flag, completion: completion)
105
106
+}
0 commit comments