{"id":30664144,"url":"https://github.com/aakarsh-verma/swiftuilayouts","last_synced_at":"2026-02-12T18:01:16.547Z","repository":{"id":309703034,"uuid":"1037250011","full_name":"Aakarsh-verma/SwiftUILayouts","owner":"Aakarsh-verma","description":"Swift Package providing a collection of reusable SwiftUI layouts","archived":false,"fork":false,"pushed_at":"2025-10-19T18:54:57.000Z","size":523,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T23:25:34.953Z","etag":null,"topics":["ios","layout-engine","spm","swiftui","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Aakarsh-verma.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-13T09:38:58.000Z","updated_at":"2025-10-19T18:55:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"624753cf-69ff-4670-9721-b702db6ed27e","html_url":"https://github.com/Aakarsh-verma/SwiftUILayouts","commit_stats":null,"previous_names":["aakarsh-verma/swiftuilayouts"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Aakarsh-verma/SwiftUILayouts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aakarsh-verma%2FSwiftUILayouts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aakarsh-verma%2FSwiftUILayouts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aakarsh-verma%2FSwiftUILayouts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aakarsh-verma%2FSwiftUILayouts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aakarsh-verma","download_url":"https://codeload.github.com/Aakarsh-verma/SwiftUILayouts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aakarsh-verma%2FSwiftUILayouts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29375594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: 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":["ios","layout-engine","spm","swiftui","xcode"],"created_at":"2025-08-31T18:40:44.563Z","updated_at":"2026-02-12T18:01:16.541Z","avatar_url":"https://github.com/Aakarsh-verma.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUILayouts\n\nSwiftUILayouts is a Swift Package providing a collection of reusable SwiftUI layouts and UI components. It is designed for iOS developers who want to quickly build modern and customizable interfaces with minimal boilerplate. The package leverages **SwiftUI** and integrates with **[Kingfisher](https://github.com/onevcat/Kingfisher)** for efficient image loading and caching.\n\n---\n\n## Highlights\n\n- 📐 **Reusable Layouts** – Predefined SwiftUI layouts for carousels, grids, and cards.  \n- 🎨 **Customizable Components** – Highly flexible with configuration models.  \n- 🖼️ **Image Handling** – Supports remote and local images via Kingfisher.  \n- 🚀 **Swift Package Manager (SPM)** – Easy integration into your project.  \n- ✅ **Unit Tests Included** – Ensures reliability and easy extension. (TBA🥲)\n\n---\n\n## Requirements\n\n- **iOS**: 17.0+  \n- **Swift**: 6.0+  \n- **Xcode**: 15.0+  \n\n---\n\n## Installation\n\n### Swift Package Manager\n\nIn Xcode:\n\n1. Go to **File → Add Packages...**  \n2. Enter the repository URL:  \n\n   ```bash\n   https://github.com/your-username/SwiftUILayouts.git\n   ```\n\n3. Select the latest version and add the package to your project.\n\n---\n\n## Usage\n\n### Import the Package\n\n```swift\nimport SwiftUILayouts\n```\n\n### Example: Carousel View\n\n```swift\nstruct DemoView: View {\n    let images: [CustomImageModel] = [\n        CustomImageModel(for: \"https://picsum.photos/200\"),\n        CustomImageModel(for: \"https://picsum.photos/300\"),\n        CustomImageModel(for: \"mylocalImage\")\n    ]\n\n    var body: some View {\n        StackCarouselView(items: images, currentIndex: .constant(0)) { item in\n            CustomImageView(imageModel: item)\n                .clipShape(RoundedRectangle(cornerRadius: 12))\n                .shadow(radius: 5)\n        }\n        .frame(height: 300)\n    }\n}\n```\n\n### Example: Custom Configurations\n\n```swift\nstruct ConfiguredCarousel: View {\n    @State private var index = 0\n\n    var body: some View {\n        StackCarouselView(\n            items: Array(1...5),\n            config: SLStackCarouselModel(\n                cardWidthRatio: 0.8,\n                cardSizeDifferenceRatio: 0.05,\n                cardOffsetDifference: 20,\n                visibleCardIndexDifference: 3,\n                showSelected: true\n            ),\n            currentIndex: $index\n        ) { number in\n            Text(\"Item \\(number)\")\n                .frame(maxWidth: .infinity, maxHeight: .infinity)\n                .background(Color.blue.opacity(0.7))\n                .cornerRadius(12)\n        }\n        .frame(height: 250)\n    }\n}\n```\n\n---\n\n## Project Structure\n\n```code\nSwiftUILayouts/\n├── Package.swift\n├── Sources/\n│   ├──Interactions/\n│   ├── Models/\n│   ├── SwiftUILayouts/\n│   ├── Views/\n|       └──Components/\n└── Tests/\n    └── SwiftUILayoutsTests/\n```\n\n- **Sources/** – Core components and layouts.  \n- **Tests/SwiftUILayoutsTests** – Unit tests for reliability.  \n\n---\n\n## Dependencies\n\n- [Kingfisher](https://github.com/onevcat/Kingfisher) – A powerful Swift library for downloading and caching images from the web.\n\n---\n\n## Features Index [Screen shots TBA]\n\n### Layouts\n\n1. Ambient Carousel Layout\n2. Cover Carousel Layout\n3. Grid Layout\n4. Parallax Carousel Layout\n5. Stack Carousel Layout\n\n### Interactions\n\n1. Pinch Pan Zoom\n\n### Components\n\n1. Image View\n\n## Contributing\n\nContributions are welcome! 🎉  \nIf you’d like to fix bugs or add new features:\n\n1. Fork the repo  \n2. Create a feature branch: `git checkout -b feature/my-feature`  \n3. Commit your changes: `git commit -m \"Add my feature\"`  \n4. Push and open a PR  \n\n---\n\n## License\n\nThis project is licensed under the **MIT License**.  \nSee [LICENSE](https://choosealicense.com/licenses/mit/) for details.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faakarsh-verma%2Fswiftuilayouts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faakarsh-verma%2Fswiftuilayouts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faakarsh-verma%2Fswiftuilayouts/lists"}