{"id":13778981,"url":"https://github.com/spacenation/swiftui-shapes","last_synced_at":"2025-04-11T17:47:54.605Z","repository":{"id":41964277,"uuid":"234238971","full_name":"spacenation/swiftui-shapes","owner":"spacenation","description":":rocket: Collection of SwiftUI shapes","archived":false,"fork":false,"pushed_at":"2024-08-01T06:53:07.000Z","size":645,"stargazers_count":299,"open_issues_count":1,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T14:41:09.196Z","etag":null,"topics":["apple","ios","macos","shapes","swift","swift-library","swift-package","swiftui","swiftui-example","tvos","watchos","xcode"],"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/spacenation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["spacenation"]}},"created_at":"2020-01-16T05:00:23.000Z","updated_at":"2024-11-10T10:18:18.000Z","dependencies_parsed_at":"2024-08-03T18:11:30.967Z","dependency_job_id":"656e4fc2-d7d4-4b37-bbe5-796ad02f3de5","html_url":"https://github.com/spacenation/swiftui-shapes","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacenation%2Fswiftui-shapes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacenation%2Fswiftui-shapes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacenation%2Fswiftui-shapes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacenation%2Fswiftui-shapes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacenation","download_url":"https://codeload.github.com/spacenation/swiftui-shapes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248454165,"owners_count":21106409,"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":["apple","ios","macos","shapes","swift","swift-library","swift-package","swiftui","swiftui-example","tvos","watchos","xcode"],"created_at":"2024-08-03T18:00:59.690Z","updated_at":"2025-04-11T17:47:54.574Z","avatar_url":"https://github.com/spacenation.png","language":"Swift","funding_links":["https://github.com/sponsors/spacenation"],"categories":["Shapes","Swift"],"sub_categories":["Content"],"readme":"## SwiftUI Shapes\nCollection of custom shapes\n\n## Regular Polygons\n\u003ccenter\u003e\n\u003cimg src=\"Resources/regularRectangles.png\"/\u003e\n\u003c/center\u003e\n\n```swift\nRegularPolygon(sides: 32)\nRoundedRegularPolygon(sides: 6, radius: 20)\n```\n\n## Lines and Curves\n\u003ccenter\u003e\n\u003cimg src=\"Resources/lines.png\"/\u003e\n\u003c/center\u003e\n\n```swift\nQuadCurve(unitPoints: [\n    UnitPoint(x: 0.1, y: 0.1),\n    UnitPoint(x: 0.5, y: 0.9),\n    UnitPoint(x: 0.9, y: 0.1)\n])\n.stroke(Color.blue, style: .init(lineWidth: 2, lineCap: .round))\n.frame(height: 200)\n```\n\n## Patterns\n\u003ccenter\u003e\n\u003cimg src=\"Resources/patterns.png\"/\u003e\n\u003c/center\u003e\n\n```swift\nGridPattern(horizontalLines: 20, verticalLines: 40)\n    .stroke(Color.white.opacity(0.3), style: .init(lineWidth: 1, lineCap: .round))\n    .frame(height: 200)\n    .background(Color.blue)\n    .padding()\n```\n\n## Install\nAdd `Shapes` to your project with Swift Package Manager\n\n```swift\n// swift-tools-version:5.3\nimport PackageDescription\n\nlet package = Package(\n    name: \"YOUR_PROJECT\",\n    dependencies: [\n        .package(url: \"https://github.com/spacenation/swiftui-shapes.git\", from: \"1.1.0\"),\n    ]\n)\n```\n\n## Code Contributions\nFeel free to contribute via fork/pull request to master branch. If you want to request a feature or report a bug please start a new issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacenation%2Fswiftui-shapes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacenation%2Fswiftui-shapes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacenation%2Fswiftui-shapes/lists"}