{"id":2724,"url":"https://github.com/glenyi/FloatRatingView","last_synced_at":"2025-08-06T15:30:32.128Z","repository":{"id":20467497,"uuid":"23744970","full_name":"glenyi/FloatRatingView","owner":"glenyi","description":"Whole, half or floating point ratings control written in Swift","archived":false,"fork":false,"pushed_at":"2022-10-01T19:24:37.000Z","size":168,"stargazers_count":549,"open_issues_count":7,"forks_count":101,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-05-23T05:28:13.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.cocoacontrols.com/controls/floatratingview","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/glenyi.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":"2014-09-06T20:46:00.000Z","updated_at":"2024-04-18T12:24:03.000Z","dependencies_parsed_at":"2022-07-26T09:17:51.410Z","dependency_job_id":null,"html_url":"https://github.com/glenyi/FloatRatingView","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenyi%2FFloatRatingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenyi%2FFloatRatingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenyi%2FFloatRatingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glenyi%2FFloatRatingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glenyi","download_url":"https://codeload.github.com/glenyi/FloatRatingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228703554,"owners_count":17959669,"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":[],"created_at":"2024-01-05T20:16:21.161Z","updated_at":"2024-12-09T15:30:50.902Z","avatar_url":"https://github.com/glenyi.png","language":"Swift","funding_links":[],"categories":["UI","Libs","Rating","UI [🔝](#readme)"],"sub_categories":["Rating Stars","UI","Layout","Other free courses"],"readme":"FloatRatingView\n=================\n\nA simple rating view for iOS written in Swift! Supports whole, half or floating point values. I couldn't find anything that easily set floating point ratings, so I made this control based on a [Ray Wenderlich tutorial](http://goo.gl/B49Al4). Some of the best iOS tutorials that I've come across.\n\nCheck out the post on medium for a full write-up.\u003cbr /\u003e\nhttps://medium.com/@glenyi/float-rating-view-in-swift-e740b6b9404d\n\n![FloatRatingView Demo](https://raw.githubusercontent.com/strekfus/FloatRatingView/master/FloatRatingView.gif \"FloatRatingView Demo\")\n\nUsage\n-----\n\nInitialize from a nib/xib or programmatically. Set the empty and full image, then you're pretty much good to go! Check out the demo app to see how it can be used.\n\nRelease v4.0 is updated for Swift 5.0 while v1.0.3 is on Swift 2.3.\n\nUsage in an Objective-C Project\n-------------------------------\n 1. Import the Swift File\n 2. Ensure the build settings in your project are set to enable Swift usage (see [here](http://stackoverflow.com/questions/25774085/xcode-gm-ios-8-gm-swift-today-extension-crash-in-simulator-and-device-library-n) and [here](http://stackoverflow.com/questions/24002836/dyld-library-not-loaded-rpath-libswift-stdlib-core-dylib/25247890#25247890))\n 3. `import \"YOUR_PROJECT_NAME-Swift.h\"` in your Objective-C files where you want to use `FloatRatingView`\n\nPod Installation\n----------------\n\nFor Swift 2.3 projects just add the following to your podfile:\n```\npod 'FloatRatingView', '~\u003e 1.0.3'\n```\n\nFor Swift 5.0 projects:\n```\npod 'FloatRatingView', '~\u003e 4'\n```\n\nHow it works\n------------\n\nThe concept is a little different from the source tutorial. The float rating view lays the full image views on top of the empty image views then sets the CALayer mask property to partially hide full images. The full image view mask frame is calculated whenever needed for half or floating point values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglenyi%2FFloatRatingView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglenyi%2FFloatRatingView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglenyi%2FFloatRatingView/lists"}