Skip to content

Commit

Permalink
🐞 Fix: ModalSheetState.isGeneric (Again)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 29, 2024
1 parent 11e31bf commit eac07cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Temp/ModalSheetState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ public enum ModalSheetState: String {
};

public func isGeneric(comparedTo otherState: Self) -> Bool {
guard self.isSameStep(comparedTo: otherState) else {
return false;
};

switch(self, otherState){
case (.draggingViaGesture, let otherState) where otherState.isInPresentation:
return false;
Expand Down

0 comments on commit eac07cb

Please sign in to comment.