All Projects → zekunyan → Ttgemojirate

zekunyan / Ttgemojirate

Licence: mit
An emoji-liked rating view for iOS, implemented in Swift3.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Ttgemojirate

Emotion Ratings
😠 😞 😑 😊 😍 This plugin allows you to create ratings using emojis
Stars: ✭ 37 (-86.97%)
Mutual labels:  emoji, rating
Gitmoji Cli
This project provides an easy solution for using gitmoji from your command line. Gitmoji-cli solves the hassle of searching through the gitmoji list. Includes a bunch of options you can play with! 🎉
Stars: ✭ 3,514 (+1137.32%)
Mutual labels:  emoji
BiliEmoji
B站全表情收集,含付费表情,支持Valine、MiniValine、Waline等评论系统
Stars: ✭ 87 (-69.37%)
Mutual labels:  emoji
Bottom Sheet
⬆️ A SwiftUI view component sliding in from bottom
Stars: ✭ 252 (-11.27%)
Mutual labels:  drag
memorable-milestones
A GitHub Action that puts your milestones on auto-pilot, using memorable emoji names 🤖
Stars: ✭ 18 (-93.66%)
Mutual labels:  emoji
Dragfloatingactionbutton
一个可以随处拖曳FloatingActionButton,边缘自动吸附,可设置按钮悬浮透明度,拖曳避免阻挡界面视图无法查看。
Stars: ✭ 258 (-9.15%)
Mutual labels:  drag
DragDemo
需求解决系列一之移动卡片实现答题功能,移动卡片插入到题干之中完成答题
Stars: ✭ 63 (-77.82%)
Mutual labels:  drag
Em Keyboard
the cli emoji keyboard™ [ author @kennethreitz ]
Stars: ✭ 280 (-1.41%)
Mutual labels:  emoji
Recyclerviewevent
RecyclerView onItemClick、onItemLongClick、drag、swipe、divider、reuse disorder RecyclerView 梳理:点击&长按事件、分割线、拖曳排序、滑动删除、优雅解决 EditText 和 CheckBox 复用错乱问题
Stars: ✭ 265 (-6.69%)
Mutual labels:  drag
emojipolation
The easiest way to use Unicode Emoji in Scala🎉✨
Stars: ✭ 23 (-91.9%)
Mutual labels:  emoji
no-facebook-emoji
Get rid of those ugly emojis now! [stopped working 😢]
Stars: ✭ 15 (-94.72%)
Mutual labels:  emoji
ocaml-emoji
Emojis in OCaml, use them in your CLIs or whatever
Stars: ✭ 19 (-93.31%)
Mutual labels:  emoji
Flutter dough
This package provides some widgets you can use to create a smooshy UI.
Stars: ✭ 254 (-10.56%)
Mutual labels:  drag
emoji
Unfancy emoji searcher.
Stars: ✭ 66 (-76.76%)
Mutual labels:  emoji
Format Readme
Формат файла README
Stars: ✭ 270 (-4.93%)
Mutual labels:  emoji
emoji-clock
🕟 Generate the emoji clock face, moon phase 🌗 , or zodiac sign ♉ 🐶 for a given time
Stars: ✭ 12 (-95.77%)
Mutual labels:  emoji
libemoji
📚 Ultimate Emoji Generator library for C/C++
Stars: ✭ 21 (-92.61%)
Mutual labels:  emoji
Photoeditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
Stars: ✭ 3,105 (+993.31%)
Mutual labels:  emoji
Emoji
Programatically work with emoji characters
Stars: ✭ 283 (-0.35%)
Mutual labels:  emoji
Animoji
Animoji Generator 🦊
Stars: ✭ 277 (-2.46%)
Mutual labels:  emoji

TTGEmojiRate

An emoji-liked rating view for iOS, implemented in Swift3.

Android version: PeterSmileRate by SilicorniO. Great work ! :)

Build Status Version License Platform Swift3

Apps Using Total Download

Screenshot

Inspired by Rating Version A - Hoang Nguyen

Rating Version A - Hoang Nguyen

Blog
土土哥的技术Blog - Swift开源项目: TTGEmojiRate的实现

Features

  • More interactive with Emoji and drag gesture.
  • Highly customizable.
  • Can be used in Interface Builder.

IB example

What

TTGEmojiRate is an emoji-liked rating view for iOS which is implemented in Swift.
You can drop up and down on the Emoji face to change the rate, which is more interactive.
TTGEmojiRate is also highly customizable that many features of it can be configure, like the emoji line width and the mouth width.

Usage

Use TTGEmojiRate

  1. Create an instance of EmojiRateView and add it to the parent view.
let rateView = EmojiRateView.init(frame: CGRectMake(0, 0, 200, 200))
rateView.center = self.view.center
self.view.addSubview(rateView)
  1. Drop a view in the Interface builder and set the Custom Class to EmojiRateView

Run example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Swift3.
Xcode8.
iOS 8 and later.

Installation

CocoaPods

You can use CocoaPods to install TTGEmojiRate by adding it to your Podfile:

pod "TTGEmojiRate"

Carthage

You can use Carthage to install TTGEmojiRate by adding it to your Cartfile:

github "zekunyan/TTGEmojiRate"

Customization

Customization

rateValueChangeCallback

rateValueChangeCallback: ((newRateValue: Float) -> Void)? defines the callback closure when rateValue changes.

emojiRateView.rateValueChangeCallback = {(rateValue: Float) -> Void in
    NSLog("The new rate value is: \(rateValue)")
}

rateColorRange

rateColorRange: (from: UIColor, to: UIColor)
When rateValue changes from 0 to 5, the rateColor will change from the from: UIColor to to: UIColor.

emojiRateView.rateColorRange = (
    UIColor.redColor(), 
    UIColor.greenColor()
)

rateDragSensitivity

rateDragSensitivity: CGFloat defines the sensitivity when drag to change rateValue.

Author

zekunyan, [email protected]

License

TTGEmojiRate is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].