# Custom Pull to Refresh in Jetpack Compose

DevFeed: [Custom Pull to Refresh in Jetpack Compose](<https://devfeed.tech/articles/custom-pull-to-refresh-in-jetpack-compose-25774.md>)

Original publisher: [Read original article](<https://www.sinasamaki.com/custom-pull-to-refresh-in-jetpack-compose-2/>)

Author: sinasamaki

Published: 2023-12-01T15:53:07Z

Content type: tutorial

Language: en

Sources: [sinasamaki](<https://devfeed.tech/sources/sinasamaki.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [animation](<https://devfeed.tech/tags/animation.md>), [article](<https://devfeed.tech/tags/article.md>), [boolean](<https://devfeed.tech/tags/boolean.md>), [compose](<https://devfeed.tech/tags/compose.md>), [custom](<https://devfeed.tech/tags/custom.md>), [delay](<https://devfeed.tech/tags/delay.md>), [google](<https://devfeed.tech/tags/google.md>), [haptic-feedback](<https://devfeed.tech/tags/haptic-feedback.md>), [library](<https://devfeed.tech/tags/library.md>), [refresh](<https://devfeed.tech/tags/refresh.md>), [state](<https://devfeed.tech/tags/state.md>), [swipe](<https://devfeed.tech/tags/swipe.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

The article replaces the deprecated accompanist approach with Google's official pull-to-refresh implementation in Compose 1.3.0: track refresh state, apply the pull-to-refresh modifier to a container around a LazyColumn, and add an indicator that reads that state. It describes customizing the experience with threshold-based haptic feedback--one vibration when the swipe crosses the refresh threshold and another when it drops below it, guarded to avoid feedback at app launch--and creating room for a custom animation by offsetting list cards. The excerpt ends while explaining that layout approach, so it does not show the full customization implementation.

## Source excerpt

Create a colorful and animated pull to refresh indicator in Jetpack Compose