{"id":18269974,"url":"https://github.com/mroffmix/Swipeable-View","last_synced_at":"2025-04-04T23:31:41.815Z","repository":{"id":40631856,"uuid":"302898696","full_name":"mroffmix/Swipeable-View","owner":"mroffmix","description":"Simple editActionsForRowAt functionality, written on SWIFTUI","archived":false,"fork":false,"pushed_at":"2020-10-21T14:08:30.000Z","size":9722,"stargazers_count":44,"open_issues_count":2,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-05T11:52:10.384Z","etag":null,"topics":["swift5","swiftui","swiftui-components","swipe","swipeable"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mroffmix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-10T12:38:32.000Z","updated_at":"2024-03-17T21:32:58.000Z","dependencies_parsed_at":"2022-09-16T18:52:01.203Z","dependency_job_id":null,"html_url":"https://github.com/mroffmix/Swipeable-View","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroffmix%2FSwipeable-View","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroffmix%2FSwipeable-View/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroffmix%2FSwipeable-View/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroffmix%2FSwipeable-View/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mroffmix","download_url":"https://codeload.github.com/mroffmix/Swipeable-View/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["swift5","swiftui","swiftui-components","swipe","swipeable"],"created_at":"2024-11-05T11:38:03.502Z","updated_at":"2025-04-04T23:31:38.679Z","avatar_url":"https://github.com/mroffmix.png","language":"Swift","readme":"\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n\n\n\u003cp align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003eSwipeable View\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n   \u003ca href=\"https://github.com/github_username/repo_name\"\u003e\n     \u003cimg src=\"https://github.com/mroffmix/SwipebleView/blob/main/Resources/logo.jpg\" alt=\"Logo\" width=\"400\"\u003e\n   \u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/mroffmix/SwipebleViewExample\"\u003e\u003cstrong\u003eCheck usage example »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\n    ·\n    \u003ca href=\"https://github.com/mroffmix/SwipebleView/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/mroffmix/SwipebleView/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n\u003c!-- Description--\u003e\n## Description\nSimple \"editActionsForRowAt\" functionality, written on SWIFTUI \nCan be applied without list to every view. \n\n![Swipeable View](https://github.com/mroffmix/SwipebleView/blob/main/Resources/WholeScreen.gif)\n\u003c!-- Installation--\u003e\n## Installation\n\nIt requires iOS 14 and Xcode 12!\n\nIn Xcode got to `File -\u003e Swift Packages -\u003e Add Package Dependency` and paste inthe repo's url: `https://github.com/mroffmix/SwipebleView`\n\n\n### Import:\n\nimport the package in the file you would like to use it: `import SwipebleView`\n\n\n\n### Demo\n\nAdded an example project, with **iOS** target: https://github.com/mroffmix/SwipebleViewExample\n\n\u003c!-- USAGE EXAMPLES --\u003e\n### Usage\n\n### Create array of actions\n\n```swift\nlet left = [\n    Action(title: \"Note\", iconName: \"pencil\", bgColor: .red, action: {}),\n    Action(title: \"Edit doc\", iconName: \"doc.text\", bgColor: .yellow, action: {}),\n    Action(title: \"New doc\", iconName: \"doc.text.fill\", bgColor: .green, action: {})\n]\n\nlet right = [\n    Action(title: \"Note\", iconName: \"pencil\", bgColor: .blue, action: {}),\n    Action(title: \"Edit doc\", iconName: \"doc.text\", bgColor: .yellow, action: {})\n]\n```\n### Create SwipeableView\n```swift\nSwipeableView(content: {\n    GroupBox {\n        Text(\"View content\")\n            .frame(maxWidth: .infinity, maxHeight: .infinity)\n    }\n},\nleftActions: left,\nrightActions: right,\nrounded: true\n).frame(height: 90)\n```\n\n![Swipeable View](https://github.com/mroffmix/SwipebleView/blob/main/Resources/IndependedView.gif)\n\n### SwipeableView in container\nIf you want to use your views in a container, as Table view, you have to ctreate \n```swift\nvar container = SwManager()\n```\nAnd put your SwipeableViews to this container\n```swift\nSwipeableView(content: {\n\n  // your view here \n\n},\nleftActions: Example.leftActions,\nrightActions: Example.rightActions,\nrounded: true,\ncontainer: container)\n.frame(height: 100)\n```\nViews behaviour in a container\n\n![Swipeable View](https://github.com/mroffmix/SwipebleView/blob/main/Resources/ViewsInAContainer.gif)\n\n\u003c!-- ROADMAP --\u003e\n### Roadmap\n\nSee the [open issues](https://github.com/mroffmix/Swipeable-View/issues) for a list of proposed features (and known issues).\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch \n3. Commit your Changes \n4. Push to the Branch \n5. Open a Pull Request\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nIlya Mikhailov - [@mix_off](https://twitter.com/mix_off) - mihailoov@gmail.com\n\nProject Link: [https://github.com/mroffmix/SwipebleView](https://github.com/mroffmix/SwipebleView)\n\n\n","funding_links":[],"categories":["swipeable"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroffmix%2FSwipeable-View","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmroffmix%2FSwipeable-View","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroffmix%2FSwipeable-View/lists"}