Add Ios Swipe Search TextField Component in Android Jetpack Compose.
val text = remember { mutableStateOf("") }
SwipeSearch(
modifier = Modifier.fillMaxSize(),
textValue = text.value,
onValueChange = {
text.value = it
}
)
- 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' }
...
}
}
...
- Sync the project
- Add dependencies
dependencies {
implementation 'com.github.commandiron:swipe-search-compose:1.0.1'
}