     }
     
     func leftButtonTapped(button: UIButton) {
-        
+        value -= 1
     }
 
     func rightButtonTapped(button: UIButton) {
-        
+        value += 1
     }
 }

        rightButton.addTarget(self, action: "rightButtonTapped:", forControlEvents: .TouchDown)
        
        label.textAlignment = .Center
        
        addSubview(leftButton)
        addSubview(rightButton)

import UIKit

class GMStepper: UIView {
    var value = 0 {
        didSet {
            value = min(maximumValue, max(minimumValue, value))
            label.text = String(value)
        }
    }
    
    var minimumValue = 0
    var maximumValue = 10
    
    let leftButton = UIButton()
    let rightButton = UIButton()
    let label = UILabel()
