Skip to content

Commit

Permalink
💄 Gloss: Add TODO Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Mar 24, 2023
1 parent b3bef83 commit 18416f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ios/src_library/React Native/RNIModalView/RNIModalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class RNIModalView: UIView, RNIModalFocusNotifying, RNIModalIdentity,
// ------------------

weak var bridge: RCTBridge?;

/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related logic
weak var delegate: RNIModalViewPresentDelegate?;

private var modalVC: RNIModalViewController?;
Expand Down Expand Up @@ -556,6 +558,7 @@ class RNIModalView: UIView, RNIModalFocusNotifying, RNIModalIdentity,
// Reset swipe gesture before it was temporarily disabled
self.enableSwipeGesture();

/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related logic
self.delegate?.onPresentModalView(modalView: self);

self.onModalShow?(
Expand Down Expand Up @@ -623,6 +626,7 @@ class RNIModalView: UIView, RNIModalFocusNotifying, RNIModalIdentity,
self.enableSwipeGesture(false);

presentedVC.dismiss(animated: true){
/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related logic
self.delegate?.onDismissModalView(modalView: self);
self.onModalDismiss?(
self.createModalNativeEventDict()
Expand Down Expand Up @@ -693,6 +697,7 @@ extension RNIModalView: UIAdaptivePresentationControllerDelegate {
func presentationControllerDidDismiss(_ presentationController: UIPresentationController) {
self.modalLevel = -1;

/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related logic
self.delegate?.onDismissModalView(modalView: self);

self.onModalDidDismiss?(
Expand Down Expand Up @@ -728,6 +733,7 @@ extension RNIModalView: UIAdaptivePresentationControllerDelegate {
// MARK: Extension: RNIModalViewFocusDelegate
// ------------------------------------------

/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related logic
extension RNIModalView: RNIModalViewFocusDelegate {

func onModalChangeFocus(modalLevel: Int, modalUUID: String, isInFocus: Bool) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation

/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related logic
@objc protocol RNIModalViewPresentDelegate: AnyObject {

func onPresentModalView(modalView: RNIModalView);
Expand All @@ -16,6 +17,7 @@ import Foundation

};

/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related logic
@objc protocol RNIModalViewFocusDelegate: AnyObject {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class RNIModalViewManager: RCTViewManager {
return true;
};

/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related
/// logic
///
// TODO: See TODO:2023-03-04-15-49-02 - Refactor: Relocate
//`presentedModalRefs`
//
Expand Down Expand Up @@ -63,6 +66,7 @@ class RNIModalViewManager: RCTViewManager {
// MARK: RNIModalViewPresentDelegate
// ---------------------------------

/// TODO:2023-03-24-14-25-52 - Remove `RNIModalViewFocusDelegate`-related logic
extension RNIModalViewManager: RNIModalViewPresentDelegate {

func onPresentModalView(modalView: RNIModalView) {
Expand Down

0 comments on commit 18416f3

Please sign in to comment.