diff --git a/app/src/main/java/com/ivy/wallet/Constants.kt b/app/src/main/java/com/ivy/wallet/Constants.kt index 02bb854faf..4272221fff 100644 --- a/app/src/main/java/com/ivy/wallet/Constants.kt +++ b/app/src/main/java/com/ivy/wallet/Constants.kt @@ -31,4 +31,6 @@ object Constants { const val USER_INACTIVITY_TIME_LIMIT = 60 //Time in seconds const val SWIPE_DOWN_THRESHOLD_OPEN_MORE_MENU = 200 + + const val SWIPE_UP_EXPANDED_THRESHOLD = 200 } \ No newline at end of file diff --git a/app/src/main/java/com/ivy/wallet/ui/edit/core/EditBottomSheet.kt b/app/src/main/java/com/ivy/wallet/ui/edit/core/EditBottomSheet.kt index 0408de782a..e06a735e3b 100644 --- a/app/src/main/java/com/ivy/wallet/ui/edit/core/EditBottomSheet.kt +++ b/app/src/main/java/com/ivy/wallet/ui/edit/core/EditBottomSheet.kt @@ -31,6 +31,7 @@ import com.google.accompanist.insets.statusBarsPadding import com.ivy.design.api.ivyContext import com.ivy.design.l0_system.UI import com.ivy.design.l0_system.style +import com.ivy.wallet.Constants import com.ivy.wallet.R import com.ivy.wallet.base.* import com.ivy.wallet.model.TransactionType @@ -112,6 +113,15 @@ fun BoxWithConstraintsScope.EditBottomSheet( shadowRadius = 24.dp ) .background(UI.colors.pure, UI.shapes.r2Top) + .verticalSwipeListener( + sensitivity = Constants.SWIPE_UP_EXPANDED_THRESHOLD, + onSwipeUp = { + internalExpanded = true + }, + onSwipeDown = { + internalExpanded = false + } + ) .consumeClicks() ) { //Accounts label