Skip to content

Commit

Permalink
🛠 Refactor: Rename to ModalSheetViewControllerEventsNotifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 27, 2024
1 parent d4a19aa commit 60424ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// SheetViewControllerEventsNotifiable.swift
// ModalSheetViewControllerEventsNotifiable.swift
// react-native-ios-modal
//
// Created by Dominic Go on 9/27/24.
Expand All @@ -8,7 +8,7 @@
import UIKit


public protocol SheetViewControllerEventsNotifiable: AnyObject {
public protocol ModalSheetViewControllerEventsNotifiable: AnyObject {

func notifyOnSheetDidAttemptToDismissViaGesture(
sender: UIViewController,
Expand All @@ -35,7 +35,7 @@ public protocol SheetViewControllerEventsNotifiable: AnyObject {
// MARK: - SheetViewControllerEventsNotifiable
// -------------------------------------------

public extension SheetViewControllerEventsNotifiable {
public extension ModalSheetViewControllerEventsNotifiable {

func notifyOnSheetDidAttemptToDismissViaGesture(
sender: UIViewController,
Expand Down
4 changes: 2 additions & 2 deletions ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ open class ModalSheetViewControllerLifecycleNotifier: ViewControllerLifecycleNot
private var _didSetup = false;

private(set) public var sheetLifecycleEventDelegates:
MulticastDelegate<SheetViewControllerEventsNotifiable> = .init();
MulticastDelegate<ModalSheetViewControllerEventsNotifiable> = .init();

/// The return value used for
/// `UIAdaptivePresentationControllerDelegate.presentationControllerShouldDismiss`
Expand Down Expand Up @@ -80,7 +80,7 @@ open class ModalSheetViewControllerLifecycleNotifier: ViewControllerLifecycleNot

public override func addEventDelegate(_ delegate: AnyObject){
super.addEventDelegate(delegate);
guard let delegate = delegate as? SheetViewControllerEventsNotifiable else {
guard let delegate = delegate as? ModalSheetViewControllerEventsNotifiable else {
return;
};

Expand Down

0 comments on commit 60424ef

Please sign in to comment.