 /**
  Enum to identify the type of icon
  */
-public enum IconType {
+public enum IconType: Int {
 
     case font
     case image

open class SkyFloatingLabelTextFieldWithIcon: SkyFloatingLabelTextField {
    
    /// A enum determining if user wants to use iconFont or iconImage
    @IBInspectable
    open var iconType: IconType = .font {
    
        didSet {

    convenience public init(frame: CGRect, iconType: IconType) {
        self.init(frame: frame)
        
        self.iconType = iconType
        
    }
    
