Skip to content

Commit

Permalink
Merge pull request #1 from Hanpto/main
Browse files Browse the repository at this point in the history
[RTCCommon] bugfix
  • Loading branch information
AbySwifter authored Nov 13, 2024
2 parents e9f2d28 + 76ed289 commit 0c33ec5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/RTCCommon/View/PopupViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ extension PopupViewController: UIViewControllerTransitioningDelegate {
return transitionAnimator
}

public override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) {
super.dismiss(animated: flag, completion: completion)
if !flag && supportBlurView {
blurEffectView.alpha = 0
blurEffectView.removeFromSuperview()
}
}

private func showBlurEffectView(source: UIViewController, duration: TimeInterval) {
source.view.addSubview(blurEffectView)
UIView.animate(withDuration: duration) { [weak self] in
Expand Down

0 comments on commit 0c33ec5

Please sign in to comment.