{"id":13338676,"url":"https://github.com/antoniokly/HandySwiftUI","last_synced_at":"2025-03-11T10:31:43.079Z","repository":{"id":129363798,"uuid":"266260931","full_name":"antoniokly/HandySwiftUI","owner":"antoniokly","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-30T10:47:44.000Z","size":130,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-23T22:18:06.796Z","etag":null,"topics":["ios","macos","swiftui","swiftui-components","tvos","ui","watchos"],"latest_commit_sha":null,"homepage":null,"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/antoniokly.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":"2020-05-23T04:14:30.000Z","updated_at":"2022-04-02T08:18:10.000Z","dependencies_parsed_at":"2023-04-03T17:20:33.511Z","dependency_job_id":null,"html_url":"https://github.com/antoniokly/HandySwiftUI","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniokly%2FHandySwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniokly%2FHandySwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniokly%2FHandySwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoniokly%2FHandySwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoniokly","download_url":"https://codeload.github.com/antoniokly/HandySwiftUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243015419,"owners_count":20222078,"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","macos","swiftui","swiftui-components","tvos","ui","watchos"],"created_at":"2024-07-29T19:17:08.405Z","updated_at":"2025-03-11T10:31:43.071Z","avatar_url":"https://github.com/antoniokly.png","language":"Swift","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=UXRR2S35YMCQC\u0026source=url"],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://img.shields.io/github/v/tag/antoniokly/HandySwiftUI?color=orange\u0026label=Swift%20Package)](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app)\n[![Platforms iOS | watchOS | tvOS | macOS](https://img.shields.io/badge/platforms-iOS%2013.0%20%7C%20tvOS%2013.0%20%7C%20watchOS%206.0%20%7C%20macOS%2010.15-orange.svg)](https://developer.apple.com/documentation/swiftui)\n[![GitHub](https://img.shields.io/github/license/antoniokly/HandySwiftUI?color=orange)](https://github.com/antoniokly/HandySwiftUI/blob/master/LICENSE)\n\n# HandySwiftUI\n\nA library of handy SwiftUI components. Keep growing.\n\n## Installation\n\nAdd Swift Package Dependency in Xcode, and enter URL ```https://github.com/antoniokly/HandySwiftUI```\n\n```swift\n  .package(url: \"https://github.com/antoniokly/HandySwiftUI.git\", from: \"0.0.1\")\n```\n\n## Usage\n\n```swift\nImport HandySwiftUI\n```\n\n### Push\n```swift\nText(\"text\").push {\n  SomeView()\n}.foregroundColor(.red)\n\n// is equivalent to\n\nNavigationLink(destination: SomeView()) {\n    Text(\"text\").foregroundColor(.red)\n}\n```\n\n### Platform Specific\n```swift\nVStack {\n  Text(\"text\")\n  Text(\"text1\")\n}.watchOS { $0\n  .font(.system(size: 12, weight: .light))\n  .foregroundColor(.blue)\n}.iOS { $0\n  .font(.system(size: 16, weight: .bold))\n}\n```\n\n### CustomToggleStyle\n\u003cimg src=\"./previews/CustomToggleStyle.png\" width=\"200\"\u003e\n\n```swift\nToggle(isOn: .constant(true)) {\n  Text(\"Text\")\n}.toggleStyle(CustomToggleStyle(onText: \"開\", offText: \"關\", onColor: .red))\n```\n\n### PageView\n\u003cimg src=\"./previews/PageView.png\" width=\"200\"\u003e\n\n```swift\nPageView(pageCount: 5, currentPage: $currentPage, isNavigating: $isNavigating) { index in\n    if index == 0 {\n        Color.gray.edgesIgnoringSafeArea(.all)\n    } else if index == 1 {\n        Text(\"Page 2\")\n    } else {\n        Text(\"More Page\")\n    }\n}.indicator(currentPageSize: 10, defaultSize: 5, currentPageColor: .accentColor, defaultColor: .orange, opacity: 0.8)\n```\n\n## Known Issues\nwatchOS and tvOS may have some issues using Swift Package, the supplied framework project is a solution to that at the moment.\n\n## Donation\n\n[![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=UXRR2S35YMCQC\u0026source=url)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoniokly%2FHandySwiftUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoniokly%2FHandySwiftUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoniokly%2FHandySwiftUI/lists"}