Latest 1.0
License MIT
Platforms ios 9.0, requires ARC

Feelings 🎭

Another rating view to share your feelings.

Build Status
Swift 3.x


Create Programmatically.

//Create Sample Arrays
let rows = ["Quality","Price","Value"]
let columns = ["1 Star","2 Star","3 Star","4 Star","5 Star"]

//Create FeelingsView
//Note: You should provide two images for FeelingsView. 1. Filled and 2. Unfilled        
let viewFeeling = FeelingsView.init(frame: CGRect.init(x: 0.0, y: 0.0, width: 300.0, height: 200.0))
viewFeeling.backgroundColor = UIColor.clear
self.view.addSubview(viewFeeling) =

//Setting fill/unfill images for FeelingsView
viewFeeling.fillImage = UIImage.init(named: "filled.png")!
viewFeeling.unfillImage = UIImage.init(named: "unfilled.png")!

//Setting up values for Feelings
viewFeeling.columnTitles = columns
viewFeeling.rowTitles = rows 


//Detect selection of Feelings value
viewFeeling.onFilledCompletion = { (row,column) in
    //Note: row and column are the Int which a user tapped in the FeelingsView
    let rowValue = rows[row]
    let columnValue = columns[column]
    print("(rowValue) -> (columnValue)")

For customization see the example.

Create in Storyboard/XIB.

  1. Add a UIView. Set your size. Add constraints if requires.

  2. Change class type from UIView to FeelingsView.

  3. Apply the properties for FeelingsView.

  4. Create an IBOutlet for FeelingsView. Bind it in IBInspector.

  5. In viewDidLoad or at anyplace where you want provide rows and columns titles.

  6. Reload FeelingsView by calling reloadFeelingView function.

  7. Detect the taps on FeelingsView by implementing onFilledCompletion closure block.


  • [ ] CocoaPods support

You can watch to Feelings to see continuous updates. Stay tuned.

Have an idea for improvements of this class?
Please open an issue.



Hemang Shah

You can shoot me an email to contact.


The MIT License (MIT)

Read the LICENSE file for details.

Latest podspec

    "name": "FeelingsView",
    "module_name": "FeelingsView",
    "version": "1.0",
    "summary": "Another rating view to share your feelings. ud83cudfad",
    "description": "Want to create a feedback view for your business. Feelings would be the best choise to add in your next iOS app.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "hemangshah": ""
    "source": {
        "git": "",
        "tag": "1.0"
    "platforms": {
        "ios": "9.0"
    "requires_arc": true,
    "source_files": "Feelings/Feelings/FeelingsView/*.swift",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This