SkillAgentSearch skills...

SwipeCard

No description available

Install / Use

/learn @YusufbekIbragimov/SwipeCard
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Release Downloads

SwipeCard with Jitpack Compose

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
   repositories {
     ..
     maven { url 'https://jitpack.io'}
     ..
  }
}

Step 2. Add the dependency Gradle:

//Swipe Card
implementation 'com.github.YusufbekIbragimov:SwipeCard:#latest_version'

Step 3. Modify your App Activity or Fragment

class MainActivity : ComponentActivity() {

    @OptIn(ExperimentalMaterialApi::class)
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        val list = listOf(
            TestDataModel(R.drawable.theme4, "Highlight 1", "Description for the highlight one"),
            TestDataModel(R.drawable.theme5, "Highlight 2", "Description for the highlight two"),
            TestDataModel(R.drawable.theme7, "Highlight 3", "Description for the highlight three"),
        )

        setContent {
            Column(
                modifier = Modifier.fillMaxSize(),
                horizontalAlignment = Alignment.CenterHorizontally,
                verticalArrangement = Arrangement.Center
            ) {

                SwipeCard(
                    modifier = Modifier,
                    itemsList = list
                ) { dataModel ->
                    DefaultContent(
                        modifier = Modifier
                            .wrapContentSize()
                            .padding(horizontal = 8.dp),
                        item = dataModel
                    )
                }
                
            }
        }

    }

}

Step 4. Result

ezgif com-gif-maker (1)

You can set orientaion type

ezgif com-gif-maker

For bugs, feature requests, and discussion, please use GitHub Issues. For general questions ONLY, please contact via Telegram.

View on GitHub
GitHub Stars19
CategoryDevelopment
Updated4mo ago
Forks0

Languages

Kotlin

Security Score

67/100

Audited on Nov 21, 2025

No findings