Skip to content

Commit 4dbda4e

Browse files
authored
Switch to always presenting pledge manager web view using a pageSheet (#2650)
1 parent 365cd9d commit 4dbda4e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Kickstarter-iOS/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ internal final class AppDelegate: UIResponder, UIApplicationDelegate {
108108
.observeForUI()
109109
.observeValues { [weak self] in
110110
self?.rootTabBarController?.dismiss(animated: true, completion: nil)
111+
$0.modalPresentationStyle = .pageSheet
111112
self?.rootTabBarController?.present($0, animated: true, completion: nil)
112113
}
113114

Kickstarter-iOS/Features/Activities/Controller/ActivitiesViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ internal final class ActivitiesViewController: UITableViewController {
231231
vc.delegate = self
232232

233233
let nav = UINavigationController(rootViewController: vc)
234-
nav.modalPresentationStyle = .formSheet
234+
nav.modalPresentationStyle = .pageSheet
235235

236236
self.present(nav, animated: true, completion: nil)
237237
}

Kickstarter-iOS/Features/Messages/Controller/MessagesViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ internal final class MessagesViewController: UITableViewController, MessageBanne
196196

197197
fileprivate func goToPMPledeView(with url: String) {
198198
let vc = PledgeManagerWebViewController.configuredWith(url: url)
199-
self.present(vc, animated: true)
199+
let nav = NavigationController(rootViewController: vc)
200+
nav.modalPresentationStyle = .pageSheet
201+
self.present(nav, animated: true)
200202
}
201203

202204
private func updateTableViewBottomContentInset() {

Kickstarter-iOS/Features/PledgedProjectsOverview/PPOContainerViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public class PPOContainerViewController: PagedContainerViewController<PPOContain
170170
let vc = PledgeManagerWebViewController.configuredWith(url: url)
171171
vc.delegate = self
172172
let nav = UINavigationController(rootViewController: vc)
173-
nav.modalPresentationStyle = .formSheet
173+
nav.modalPresentationStyle = .pageSheet
174174
nav.presentationController?.delegate = self
175175

176176
self.navigationController?.present(nav, animated: true)

0 commit comments

Comments
 (0)