Skip to content

Commit

Permalink
⭐️ Impl: UIViewController.modalMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 27, 2024
1 parent 25f7f08 commit d60ad2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/Temp/UIViewController+ModalHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ extension UIViewController {

return window.currentModalLevel;
};

public var modalMetrics: ModalViewControllerMetrics {
.init(viewController: self);
};

public var presentationControllerMetrics: PresentationControllerMetrics? {
self.presentationController?.presentationControllerMetrics;
};
Expand Down

0 comments on commit d60ad2b

Please sign in to comment.