Skip to content

Commit

Permalink
⭐️ Impl: Modal State didChange Property
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 14, 2023
1 parent 4730308 commit 10413c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public struct RNIModalFocusStateMachine {
public var wasBlurCancelled: Bool = false;
public var wasFocusCancelled: Bool = false;

public var didChange: Bool {
self.statePrev != self.state;
};

// MARK: - Functions
// ------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ public struct RNIModalPresentationStateMachine {
self._wasCancelledDismiss || self.wasCancelledDismissViaGesture;
};

public var didChange: Bool {
self.statePrev != self.state;
};

// MARK: - Functions
// -----------------

Expand Down

0 comments on commit 10413c2

Please sign in to comment.