Skip to content

Commit

Permalink
⭐️ Impl: getTopmostPresentedViewController
Browse files Browse the repository at this point in the history
Related:
* TODO:2023-03-04-06-34-28 - Library Native Cleanup
* TODO:2023-03-04-15-39-46 - Impl. `RNIModalManager`

Summary: Implement `RNIModalManager.getPresentedViewControllers`.
  • Loading branch information
dominicstop committed Mar 21, 2023
1 parent d16fae4 commit 7df9a10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/src_library/React Native/RNIModal/RNIModalManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public class RNIModalManager {
return presentedVCList;
};

public static func getTopmostPresentedViewController() -> UIViewController? {
return Self.getPresentedViewControllers().last;
};

// MARK: - Properties
// ------------------

Expand Down

0 comments on commit 7df9a10

Please sign in to comment.