swipe-search-compose icon indicating copy to clipboard operation
swipe-search-compose copied to clipboard

Add Ios Swipe Search TextField Component in Android Jetpack Compose.

IosSwipeSearchCompose

Add Ios Swipe Search TextField Component in Android Jetpack Compose.

How it looks

Usage

val text = remember { mutableStateOf("") }
SwipeSearch(
    modifier = Modifier.fillMaxSize(),
    textValue = text.value,
    onValueChange = {
        text.value = it
    }
)

Setup

  1. Open the file settings.gradle (it looks like that)
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        // add jitpack here 👇🏽
        maven { url 'https://jitpack.io' }
       ...
    }
} 
...
  1. Sync the project
  2. Add dependencies
dependencies {
    implementation 'com.github.commandiron:swipe-search-compose:1.0.1'
}