Skip to content

Commit 4248796

Browse files
committed
Configure PrivacyBannerViewController to not be dismissable
1 parent 769ab26 commit 4248796

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Privacy/PrivacyBannerViewController.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import WordPressUI
77
///
88
final class PrivacyBannerViewController: UIHostingController<PrivacyBanner> {
99

10+
// These are part of the `DrawerPresentable` protocol.
11+
// We define them here instead than in the existing extension that defines the protocol conformance so that we can make the stored constants.
12+
// Otherwise, since extensions don't allow for stored properties, they would have had to be computed vars.
13+
let allowsTapToDismiss = false
14+
let allowsDragToDismiss = false
15+
1016
/// Tracks the banner view intrinsic height.
1117
/// Needed to enable it's scrolling when it grows bigger than the screen.
1218
///

0 commit comments

Comments
 (0)