         }
     }
     
+    @objc
     public var shutterType: ShutterType  = .Normal {
         didSet {
             switch shutterType {


import UIKit

@IBDesignable
public class KYShutterButton: UIButton {
    
    public enum ShutterType: Int {
        case Normal, SlowMotion, TimeLapse
    }
    
    public enum ButtonState: Int {
        case Normal, Recording
    }

    
    
    /**************************************************************************/
     // MARK: - initialize
     /**************************************************************************/
    
    @objc
    public convenience init(frame: CGRect, shutterType: ShutterType, buttonColor: UIColor) {
        self.init(frame: frame)
        self.shutterType = shutterType
