Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 0354281

Browse files
Natalia HaratehBasThomas
Natalia Harateh
authored andcommitted
set popoverPresentationController for iPad presentation (#2762)
1 parent 1433e90 commit 0354281

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Classes/Settings/SettingsViewController.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ GitHubSessionListener {
212212
self?.signout()
213213
}
214214
])
215-
215+
if let popoverPresentationController = alert.popoverPresentationController {
216+
popoverPresentationController.sourceView = signOutCell
217+
popoverPresentationController.sourceRect = signOutCell.bounds
218+
}
216219
present(alert, animated: trueUnlessReduceMotionEnabled)
217220
}
218221

0 commit comments

Comments
 (0)