Skip to content

Commit

Permalink
⭐️ Impl: SheetViewControllerEventsNotifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 26, 2024
1 parent 6cbdee4 commit 8a61ff7
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions ios/Temp/SheetViewControllerEventsNotifiable.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//
// SheetViewControllerEventsNotifiable.swift
// react-native-ios-modal
//
// Created by Dominic Go on 9/27/24.
//

import UIKit


public protocol SheetViewControllerEventsNotifiable: AnyObject {

func notifyOnSheetDidAttemptToDismissViaGesture(
sender: UIViewController,
presentationController: UIPresentationController
);

func notifyOnSheetDidDismissViaGesture(
sender: UIViewController,
presentationController: UIPresentationController
);

func notifyOnSheetWillDismissViaGesture(
sender: UIViewController,
presentationController: UIPresentationController
);
};

// MARK: - SheetViewControllerEventsNotifiable
// -------------------------------------------

public extension SheetViewControllerEventsNotifiable {

func notifyOnSheetDidAttemptToDismissViaGesture(
sender: UIViewController,
presentationController: UIPresentationController
) {
// no-op
};

func notifyOnSheetDidDismissViaGesture(
sender: UIViewController,
presentationController: UIPresentationController
) {
// no-op
};

func notifyOnSheetWillDismissViaGesture(
sender: UIViewController,
presentationController: UIPresentationController
) {
// no-op
};
};

0 comments on commit 8a61ff7

Please sign in to comment.