I am trying to implement BottomSheetFragment (fragment that is staying out of screen and slides in when I need it to), and I am struggling with limit onSwipe trigger.
I want bottom sheet to start appearing only if user swipes from the bottom of the screen, but onSwipe animation is triggered even in the middle of the screen.
My onSwipe:
<OnSwipe
app:dragDirection="dragUp"
app:touchAnchorId="@+id/bottom_sheet_fragment"
app:touchAnchorSide="top" />