Fix reblog confirmation alert not being centered in non-fullscreen window

Closes #415
This commit is contained in:
Shadowfacts 2023-06-26 21:01:23 -07:00
parent 2e7ad1626e
commit a11e453112
1 changed files with 1 additions and 0 deletions

View File

@ -486,6 +486,7 @@ class CustomAlertPresentationAnimation: NSObject, UIViewControllerAnimatedTransi
let container = transitionContext.containerView
container.addSubview(alert.view)
alert.view.frame = container.bounds
guard transitionContext.isAnimated else {
presenter.view.tintAdjustmentMode = .dimmed