Skip to content

Commit

Permalink
🛠 Refactor: Move + Group Related Sources
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Oct 7, 2024
1 parent 2ff7b3c commit dc61078
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 8 deletions.
20 changes: 20 additions & 0 deletions ios/Extenstion+Helpers/UIViewController+RNIModalHelpers.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// UIViewController+RNIModalHelpers.swift
// react-native-ios-modal
//
// Created by Dominic Go on 10/7/24.
//

import UIKit


public extension UIViewController {

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

var presentationControllerMetrics: RNIPresentationControllerMetrics? {
self.presentationController?.presentationControllerMetrics;
};
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions ios/Temp/UIViewController+ModalHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,4 @@ extension UIViewController {

return window.currentModalLevel;
};

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

public var presentationControllerMetrics: RNIPresentationControllerMetrics? {
self.presentationController?.presentationControllerMetrics;
};
};

0 comments on commit dc61078

Please sign in to comment.