Fix reblog confirmation alert not being centered in non-fullscreen window
Closes #415
This commit is contained in:
parent
2e7ad1626e
commit
a11e453112
|
@ -486,6 +486,7 @@ class CustomAlertPresentationAnimation: NSObject, UIViewControllerAnimatedTransi
|
||||||
|
|
||||||
let container = transitionContext.containerView
|
let container = transitionContext.containerView
|
||||||
container.addSubview(alert.view)
|
container.addSubview(alert.view)
|
||||||
|
alert.view.frame = container.bounds
|
||||||
|
|
||||||
guard transitionContext.isAnimated else {
|
guard transitionContext.isAnimated else {
|
||||||
presenter.view.tintAdjustmentMode = .dimmed
|
presenter.view.tintAdjustmentMode = .dimmed
|
||||||
|
|
Loading…
Reference in New Issue