From a11e453112b05cd09e64f47e7ef0b742b9224426 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 26 Jun 2023 21:01:23 -0700 Subject: [PATCH] Fix reblog confirmation alert not being centered in non-fullscreen window Closes #415 --- Tusker/Screens/Utilities/CustomAlertController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tusker/Screens/Utilities/CustomAlertController.swift b/Tusker/Screens/Utilities/CustomAlertController.swift index 149ffdf2..4e3f63c7 100644 --- a/Tusker/Screens/Utilities/CustomAlertController.swift +++ b/Tusker/Screens/Utilities/CustomAlertController.swift @@ -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