{"id":24213610,"url":"https://github.com/talljack/cooponent","last_synced_at":"2026-05-05T16:05:18.970Z","repository":{"id":269849191,"uuid":"908646780","full_name":"Talljack/Cooponent","owner":"Talljack","description":"🎨 A collection of beautiful, customizable SwiftUI components for modern iOS and macOS applications. Built with SwiftUI, focusing on reusability and user experience.","archived":false,"fork":false,"pushed_at":"2024-12-26T15:50:34.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T00:31:48.822Z","etag":null,"topics":["ios","swift","swiftui","ui-components"],"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/Talljack.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-26T15:36:54.000Z","updated_at":"2024-12-26T15:55:42.000Z","dependencies_parsed_at":"2024-12-26T16:41:37.197Z","dependency_job_id":null,"html_url":"https://github.com/Talljack/Cooponent","commit_stats":null,"previous_names":["talljack/cooponent"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2FCooponent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2FCooponent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2FCooponent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talljack%2FCooponent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Talljack","download_url":"https://codeload.github.com/Talljack/Cooponent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241705911,"owners_count":20006397,"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":["ios","swift","swiftui","ui-components"],"created_at":"2025-01-14T03:17:18.389Z","updated_at":"2026-05-05T16:05:18.962Z","avatar_url":"https://github.com/Talljack.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cooponent\n\nA collection of beautiful and reusable SwiftUI components.\n\n## Features\n\n- **SegmentedControl**: A highly customizable segmented control component that supports both text and icon modes.\n\n## Requirements\n\n- iOS 15.0+ / macOS 13.0+\n- Swift 5.7+\n- Xcode 14.0+\n\n## Installation\n\n### Swift Package Manager\n\nAdd the following line to the dependencies in your `Package.swift` file:\n\n```swift\n.package(url: \"https://github.com/Talljack/Cooponent.git\", from: \"1.0.0\")\n```\n\nThen include \"Cooponent\" as a dependency for your target:\n\n```swift\n.target(\n    name: \"YourTarget\",\n    dependencies: [\"Cooponent\"]\n)\n```\n\n## Usage\n\n### SegmentedControl\n\n```swift\nimport SwiftUI\nimport Cooponent\n\nstruct ContentView: View {\n    enum Tab: String, SegmentItem {\n        case home = \"house.fill\"\n        case search = \"magnifyingglass\"\n        case profile = \"person.fill\"\n        case settings = \"gear\"\n    }\n    \n    @State private var selectedTab: Tab = .home\n    \n    var body: some View {\n        // Default style with icons\n        SegmentedControl(\n            tabs: [.home, .search, .profile, .settings],\n            activeTab: $selectedTab,\n            activeTint: Color.blue,\n            inactiveTint: Color.gray\n        ) { size in\n            Capsule()\n                .fill(Color.blue.opacity(0.2))\n        }\n        .frame(height: 50)\n        \n        // Text mode\n        SegmentedControl(\n            tabs: [.home, .search, .profile, .settings],\n            activeTab: $selectedTab,\n            displayAsText: true,\n            font: .headline,\n            activeTint: Color.white,\n            inactiveTint: Color.gray\n        ) { size in\n            RoundedRectangle(cornerRadius: 10)\n                .fill(Color.blue)\n        }\n        .frame(height: 45)\n    }\n}\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalljack%2Fcooponent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalljack%2Fcooponent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalljack%2Fcooponent/lists"}