{"id":2725,"url":"https://github.com/zekunyan/TTGEmojiRate","last_synced_at":"2025-08-03T00:32:26.289Z","repository":{"id":56923319,"uuid":"44436486","full_name":"zekunyan/TTGEmojiRate","owner":"zekunyan","description":"An emoji-liked rating view for iOS, implemented in Swift3.","archived":false,"fork":false,"pushed_at":"2018-07-27T13:58:54.000Z","size":883,"stargazers_count":290,"open_issues_count":1,"forks_count":32,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-05-01T14:38:16.720Z","etag":null,"topics":["animation","coreanimation","drag","emoji","ios","rating","swift"],"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/zekunyan.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":"2015-10-17T12:37:15.000Z","updated_at":"2024-04-15T08:36:31.000Z","dependencies_parsed_at":"2022-08-20T22:20:15.082Z","dependency_job_id":null,"html_url":"https://github.com/zekunyan/TTGEmojiRate","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGEmojiRate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGEmojiRate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGEmojiRate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGEmojiRate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekunyan","download_url":"https://codeload.github.com/zekunyan/TTGEmojiRate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510784,"owners_count":17931763,"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","coreanimation","drag","emoji","ios","rating","swift"],"created_at":"2024-01-05T20:16:21.187Z","updated_at":"2024-12-06T18:30:43.780Z","avatar_url":"https://github.com/zekunyan.png","language":"Swift","funding_links":[],"categories":["UI","awesome-ios ##"],"sub_categories":["Rating Stars","Layout","Other free courses"],"readme":"# TTGEmojiRate\nAn emoji-liked rating view for iOS, implemented in **Swift3**. \n\n**Android version: [PeterSmileRate](https://github.com/SilicorniO/PeterSmileRate) by [SilicorniO](https://github.com/SilicorniO). Great work ! :)**\n\n[![Build Status](https://travis-ci.org/zekunyan/TTGEmojiRate.svg?branch=master)](https://travis-ci.org/zekunyan/TTGEmojiRate)\n[![Version](https://img.shields.io/cocoapods/v/TTGEmojiRate.svg?style=flat)](http://cocoapods.org/pods/TTGEmojiRate)\n[![License](https://img.shields.io/cocoapods/l/TTGEmojiRate.svg?style=flat)](http://cocoapods.org/pods/TTGEmojiRate)\n[![Platform](https://img.shields.io/cocoapods/p/TTGEmojiRate.svg?style=flat)](http://cocoapods.org/pods/TTGEmojiRate)\n[![Swift3](https://img.shields.io/badge/Swift-3-orange.svg)](https://developer.apple.com/swift/)\n\n[![Apps Using](https://img.shields.io/badge/Apps%20Using-%3E%2060-blue.svg)](https://github.com/zekunyan/TTGEmojiRate)\n[![Total Download](https://img.shields.io/badge/Total%20Download-%3E%201,214-blue.svg)](https://github.com/zekunyan/TTGEmojiRate)\n\n![Screenshot](https://github.com/zekunyan/TTGEmojiRate/raw/master/Resources/TTGEmojiRate_example.gif)\n\n**Inspired by [Rating Version A - Hoang Nguyen](https://dribbble.com/shots/2211556-Rating-Version-A)**\n\n![Rating Version A - Hoang Nguyen](https://github.com/zekunyan/TTGEmojiRate/raw/master/Resources/TTGEmojiRate_Dribbble.gif)\n\n**Blog**  \n[土土哥的技术Blog - Swift开源项目: TTGEmojiRate的实现](http://tutuge.me/2015/10/25/ttgemojirate-lib/)\n\n## Features\n* More interactive with Emoji and drag gesture.\n* Highly customizable.\n* Can be used in Interface Builder.\n\n![IB example](https://github.com/zekunyan/TTGEmojiRate/raw/master/Resources/TTGEmojiRate_1.png)\n\n## What\nTTGEmojiRate is an emoji-liked rating view for iOS which is implemented in Swift.  \nYou can drop up and down on the Emoji face to change the rate, which is more interactive.  \nTTGEmojiRate is also highly customizable that many features of it can be configure, like the emoji line width and the mouth width.\n\n## Usage\n### Use TTGEmojiRate\n\n1. Create an instance of EmojiRateView and add it to the parent view.\n```Swift\nlet rateView = EmojiRateView.init(frame: CGRectMake(0, 0, 200, 200))\nrateView.center = self.view.center\nself.view.addSubview(rateView)\n```\n\n2. Drop a view in the Interface builder and set the `Custom Class` to `EmojiRateView`\n\n### Run example\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\nSwift3.  \nXcode8.  \niOS 8 and later.\n\n## Installation\n### CocoaPods\nYou can use [CocoaPods](http://cocoapods.org) to install `TTGEmojiRate` by adding it to your `Podfile`:\n\n```ruby\npod \"TTGEmojiRate\"\n```\n\n### Carthage\nYou can use [Carthage](https://github.com/Carthage/Carthage) to install `TTGEmojiRate` by adding it to your `Cartfile`:\n```\ngithub \"zekunyan/TTGEmojiRate\"\n```\n\n## Customization\n![Customization](https://github.com/zekunyan/TTGEmojiRate/raw/master/Resources/TTGEmojiRate_2.png)\n\n#### rateValueChangeCallback\n`rateValueChangeCallback: ((newRateValue: Float) -\u003e Void)?` defines the callback closure when `rateValue` changes.\n```Swift\nemojiRateView.rateValueChangeCallback = {(rateValue: Float) -\u003e Void in\n    NSLog(\"The new rate value is: \\(rateValue)\")\n}\n```\n\n#### rateColorRange\n`rateColorRange: (from: UIColor, to: UIColor)`  \nWhen `rateValue` changes from 0 to 5, the `rateColor` will change from the `from: UIColor` to `to: UIColor`.\n```\nemojiRateView.rateColorRange = (\n    UIColor.redColor(), \n    UIColor.greenColor()\n)\n```\n\n#### rateDragSensitivity\n`rateDragSensitivity: CGFloat` defines the sensitivity when drag to change rateValue. \n\n## Author\nzekunyan, zekunyan@163.com\n\n## License\nTTGEmojiRate is available under the MIT license. See the LICENSE file for more info.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekunyan%2FTTGEmojiRate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekunyan%2FTTGEmojiRate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekunyan%2FTTGEmojiRate/lists"}