{"id":19500875,"url":"https://github.com/jwd-ali/ringpiechart","last_synced_at":"2025-04-25T23:30:44.990Z","repository":{"id":38980952,"uuid":"241584629","full_name":"jwd-ali/RingPieChart","owner":"jwd-ali","description":"If you want to add circular pie chart in your application then RingPieChart can be a good choice containing number of  animations and its Easy to use framework ","archived":false,"fork":false,"pushed_at":"2020-03-11T10:49:08.000Z","size":4305,"stargazers_count":36,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T06:53:11.588Z","etag":null,"topics":["animation","cabasicanimation","carthage","cashapelayer","chart","cocoapods","loading-animations","loading-spinner","pie-chart","piechart","piechartview","ring","swift","ui","ui-components","uibezierpath","uikit","xcode"],"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/jwd-ali.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-02-19T09:43:29.000Z","updated_at":"2025-03-02T16:19:38.000Z","dependencies_parsed_at":"2022-09-11T07:20:42.740Z","dependency_job_id":null,"html_url":"https://github.com/jwd-ali/RingPieChart","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/jwd-ali%2FRingPieChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwd-ali%2FRingPieChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwd-ali%2FRingPieChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwd-ali%2FRingPieChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwd-ali","download_url":"https://codeload.github.com/jwd-ali/RingPieChart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250912660,"owners_count":21506865,"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":["animation","cabasicanimation","carthage","cashapelayer","chart","cocoapods","loading-animations","loading-spinner","pie-chart","piechart","piechartview","ring","swift","ui","ui-components","uibezierpath","uikit","xcode"],"created_at":"2024-11-10T22:10:02.072Z","updated_at":"2025-04-25T23:30:44.457Z","avatar_url":"https://github.com/jwd-ali.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/jwd-ali/TidalTestProject/blob/master/images/header/header.png\"\u003e\n\u003cimg align=\"right\" src=\"https://github.com/jwd-ali/RingPieChart/blob/master/images/demo.png\" width=\"480\" /\u003e\n\u003cp\u003e\u003ch1 align=\"left\"\u003eRingPieChart\u003c/h1\u003e\u003c/p\u003e\n\n[![CI Status](https://travis-ci.org/jwd-ali/RingPieChart.svg)](https://travis-ci.org/jwd-ali/RingPieChart)\n[![CocoaPods Version](https://img.shields.io/cocoapods/v/RingPieChart.svg?style=flat)](https://cocoapods.org/pods/RingPieChart)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-0473B3.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License](https://img.shields.io/cocoapods/l/RingPieChart.svg?style=flat)](https://cocoapods.org/pods/RingPieChart)\n[![Platform](https://img.shields.io/cocoapods/p/RingPieChart.svg?style=flat)](https://cocoapods.org/pods/RingPieChart)\n[![Swift 5.1](https://img.shields.io/badge/swift-5.1-orange)](https://swift.org)\n\n\u003cp\u003e\u003ch4\u003eAdd Beautiful Ring Piechart in your Project\u003c/h4\u003e\u003c/p\u003e\n\n___\n\n\u003cp\u003e \n  \n\n\u003ca href=\"https://www.linkedin.com/in/jawad-ali-3804ab24/\"\u003e\u003cimg src=\"https://i.imgur.com/vGjsQPt.png\" width=\"134\" height=\"34\"\u003e\u003c/a\u003e  \n\n\u003c/br\u003e\u003c/br\u003e\n\n\n## Requirements\n\n- iOS 10.0+ / Mac OS X 10.9+ / watchOS 2.0+ / tvOS 9.0+\n- Xcode 8.0+\n\n## Installation\n\n### [CocoaPods](http://cocoapods.org)\n\nTo integrate **RingPieChart** into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nuse_frameworks!\n\npod 'RingPieChart'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### [Carthage](http://github.com/Carthage/Carthage)\n\nTo integrate `RingPieChart` into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"jwd-ali/RingPieChart\"\n```\n\n### [Swift Package Manager (SPM)](https://swift.org/package-manager)\n\n#### Prerequisites\n- OSX\n\n\n#### Update `Package.swift`\nTo integrate `RingPieChart` in your project, add the proper description to your `Package.swift` file:\n```swift\n// swift-tools-version:5.0\nimport PackageDescription\n\nlet package = Package(\n    name: \"YOUR_PROJECT_NAME\",\n    dependencies: [\n        .package(url: \"https://github.com/jwd-ali/RingPieChart.git\", from: \"2.0.0\")\n    ],\n    targets: [\n        .target(\n            name: \"YOUR_TARGET_NAME\",\n            dependencies: [\"RingPieChart\"]\n        ),\n        ...\n    ]\n)\n```\n\n### Manually\n\nIf you prefer not to use a dependency manager, you can integrate RingPieChart into your project manually.\n\n- Add sources into your project:\n  - Drag `Circular.swift`\n\n## Usage\n\n\u003e If you are using any dependency manager (pods , carthage , package manager)to integrate RingPieChart. Import RingPieChart first:\n\u003e ```swift\n\u003e import RingPieChart\n\u003e ```\n\n\u003e And for Manuall install you dont need to import anything \n\n- Init your ring with  `percentages` and `colors`:\n```swift\n let chart = Circular(percentages: [42,27,18,13], colors: [.blue,.purple,.orange,.red],aimationType: .animationFadeIn,showPercentageStyle: .inward)\n // OR \n let chart = Circular(percentages: [42,27,18,13], colors: [.blue,.purple,.orange,.red])\n```\nAnimation is True by default \nyou can set frame or add constraints to chart \n\n```swift\n chart.frame = CGRect(x: 50, y: 50, width: 250, height: 250)\n self.view .addSubview(chart)\n```\nYou can add chart line width by setting lineWidth property like this \n```swift\nchart.lineWidth = 12 \n```\nRing chart Has 5 values for its Animation Enum \n```swift \npublic enum AnimationStyle: Int {\n    case animationFanAll\n    case animationFan\n    case animationFadeIn\n    case animationthreeD\n    case none\n}\n```\nand 4 different styles of showing percentages. You can choose accoding to your UI needs\n\n```swift\npublic enum PercentageStyle : Int {\n    case none\n    case inward\n    case outward\n    case over\n    \n}\n```\n\nYou can pass them in an initialiser or set there value after intialisation \n```swift\nchart.animationType =  .animationFan\nchart.showPercentageStyle = .outward\n```\nCongratulations! You're done.\n\n\u003ch3 align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/jwd-ali/RingPieChart/blob/master/images/ezgif.com-video-to-gif.gif\"  alt=\"Beautiful Ring PieChart\" /\u003e\n\u003c/h3\u003e\n\n\n## Contributing\n\nI’d love to have help on this project. For small changes please [open a pull request](https://github.com/jwd-ali/RingPieChart/pulls), for larger changes please [open an issue](https://github.com/jwd-ali/RingPieChart/issues) first to discuss what you’d like to see.\n\n\nLicense\n-------\n\nRingPieChart is under [MIT](https://opensource.org/licenses/MIT). See [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwd-ali%2Fringpiechart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwd-ali%2Fringpiechart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwd-ali%2Fringpiechart/lists"}