diff --git a/ios/Temp/SheetViewControllerEventsNotifiable.swift b/ios/Temp/ModalSheetViewControllerEventsNotifiable.swift similarity index 88% rename from ios/Temp/SheetViewControllerEventsNotifiable.swift rename to ios/Temp/ModalSheetViewControllerEventsNotifiable.swift index 8ab74d07..baedb4ea 100644 --- a/ios/Temp/SheetViewControllerEventsNotifiable.swift +++ b/ios/Temp/ModalSheetViewControllerEventsNotifiable.swift @@ -1,5 +1,5 @@ // -// SheetViewControllerEventsNotifiable.swift +// ModalSheetViewControllerEventsNotifiable.swift // react-native-ios-modal // // Created by Dominic Go on 9/27/24. @@ -8,7 +8,7 @@ import UIKit -public protocol SheetViewControllerEventsNotifiable: AnyObject { +public protocol ModalSheetViewControllerEventsNotifiable: AnyObject { func notifyOnSheetDidAttemptToDismissViaGesture( sender: UIViewController, @@ -35,7 +35,7 @@ public protocol SheetViewControllerEventsNotifiable: AnyObject { // MARK: - SheetViewControllerEventsNotifiable // ------------------------------------------- -public extension SheetViewControllerEventsNotifiable { +public extension ModalSheetViewControllerEventsNotifiable { func notifyOnSheetDidAttemptToDismissViaGesture( sender: UIViewController, diff --git a/ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift b/ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift index 37de1246..07bb7980 100644 --- a/ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift +++ b/ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift @@ -14,7 +14,7 @@ open class ModalSheetViewControllerLifecycleNotifier: ViewControllerLifecycleNot private var _didSetup = false; private(set) public var sheetLifecycleEventDelegates: - MulticastDelegate = .init(); + MulticastDelegate = .init(); /// The return value used for /// `UIAdaptivePresentationControllerDelegate.presentationControllerShouldDismiss` @@ -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; };