Skip to content

Commit

Permalink
⭐️ Impl: ModalState.isInPresentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 29, 2024
1 parent cc4ca4b commit 3d33aa6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/Temp/ModalSheetState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public enum ModalSheetState: String {
self.modalState.isDismissed;
};

public var isInPresentation: Bool {
!self.isDraggingViaGesture
&& self.modalState.isInPresentation
};

public var isIdle: Bool {
switch self {
case .draggingViaGesture:
Expand Down
4 changes: 4 additions & 0 deletions ios/Temp/ModalState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public enum ModalState: String {
};
};

public var isInPresentation: Bool {
self.isPresenting || self.isDismissing;
};

public var modalSheetState: ModalSheetState {
switch self {
case .presenting:
Expand Down

0 comments on commit 3d33aa6

Please sign in to comment.