{"id":23284120,"url":"https://github.com/amirsinarz/lcswitch","last_synced_at":"2026-02-26T17:50:34.918Z","repository":{"id":268658651,"uuid":"905069931","full_name":"AmirSinaRZ/LCSwitch","owner":"AmirSinaRZ","description":"Android Jetpack Compose implementation of switch animation from Oleg Frolov","archived":false,"fork":false,"pushed_at":"2024-12-18T06:47:56.000Z","size":1126,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T21:44:34.130Z","etag":null,"topics":["android","compose-ui","jetpack-compose","kotlin","kotlin-android"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmirSinaRZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-18T05:20:04.000Z","updated_at":"2025-04-06T22:19:26.000Z","dependencies_parsed_at":"2024-12-18T06:38:41.830Z","dependency_job_id":"f31f423b-0e30-4600-8b35-e34ae103042b","html_url":"https://github.com/AmirSinaRZ/LCSwitch","commit_stats":null,"previous_names":["amirsinarz/lcswitch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmirSinaRZ/LCSwitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirSinaRZ%2FLCSwitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirSinaRZ%2FLCSwitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirSinaRZ%2FLCSwitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirSinaRZ%2FLCSwitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmirSinaRZ","download_url":"https://codeload.github.com/AmirSinaRZ/LCSwitch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmirSinaRZ%2FLCSwitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29867144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T16:38:37.846Z","status":"ssl_error","status_checked_at":"2026-02-26T16:37:58.932Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","compose-ui","jetpack-compose","kotlin","kotlin-android"],"created_at":"2024-12-20T01:38:08.415Z","updated_at":"2026-02-26T17:50:34.888Z","avatar_url":"https://github.com/AmirSinaRZ.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preview\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"preview.gif\" alt=\"heart-switch Demo\"\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n\u003ch1 align=\"center\"\u003eLCSwitch\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eA Circular and Linear toggle switch component built using Jetpack Compose. Inspired by \u003ca href=\"https://dribbble.com/shots/5429846-Switcher-XLIV\"\u003eOleg Frolov\u003c/a\u003e\u003c/h3\u003e\n\u003cbr\u003e\n\n[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)\n[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=21)\n\nUSAGE\n-----\nJust add [LCSwitch.kt](https://github.com/AmirSinaRZ/LCSwitch/blob/master/app/src/main/java/com/amirsinarz/lcswitch/LCSwitch.kt) file in your project .\nExamples are in the [MainActivity.kt](https://github.com/AmirSinaRZ/LCSwitch/blob/master/app/src/main/java/com/amirsinarz/lcswitch/MainActivity.kt)\n\n### Circular Switch:\n```kotlin\n@Composable\nfun SwitcherC(\n    modifier: Modifier = Modifier,\n    width: Dp = 46.dp,\n    height: Dp = 26.dp,\n    checked: Boolean = true,\n    onCheckedChange: ((Boolean) -\u003e Unit)? = null,\n    elevation: Dp = 4.dp,\n    onColor: Color = Color(0xFF48ea8b),\n    offColor: Color = Color(0xFFff4651),\n    iconColor: Color = Color.White,\n)\n```\n### Linear Switch\n```kotlin\n@Composable\nfun SwitcherL(\n    modifier: Modifier = Modifier,\n    width: Dp = 46.dp,\n    height: Dp = 26.dp,\n    checked: Boolean = true,\n    onCheckedChange: ((Boolean) -\u003e Unit)? = null,\n    elevation: Dp = 4.dp,\n    onColor: Color = Color(0xFF48ea8b),\n    offColor: Color = Color(0xFFff4651),\n    iconColor: Color = Color.White,\n) \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirsinarz%2Flcswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirsinarz%2Flcswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirsinarz%2Flcswitch/lists"}