Reputation: 1415
i want to create a swipable component using jetpack compose and as the document Gestures | JetpackCompose I should use rememberSwipeableState
.
but when I want to use it I face this error:
Cannot access 'rememberSwipeableState': it is internal in 'androidx.compose.material3'
what should I do?
Upvotes: 3
Views: 2284
Reputation: 963
This issue is already being tracked here, issue in Material3 Compose. Alternatively as per their recommendation
For the time being, we recommend forking Swipeable if you need it in M3!
you can use Material2 Compose Swipeable
and fork it.
Upvotes: 5