Skip to content

Commit

Permalink
⭐️ Impl: UIViewController.presentationControllerMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 27, 2024
1 parent 7edb54f commit 25f7f08
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ios/Temp/UIPresentationController+Helpers.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// UIPresentationController+Helpers.swift
// react-native-ios-modal
//
// Created by Dominic Go on 9/27/24.
//

import UIKit


extension UIPresentationController {

public var presentationControllerMetrics: PresentationControllerMetrics {
.init(from: self);
};
};
3 changes: 3 additions & 0 deletions ios/Temp/UIViewController+ModalHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,7 @@ extension UIViewController {

return window.currentModalLevel;
};
public var presentationControllerMetrics: PresentationControllerMetrics? {
self.presentationController?.presentationControllerMetrics;
};
};

0 comments on commit 25f7f08

Please sign in to comment.