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

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

open class SkyFloatingLabelTextFieldWithIcon: SkyFloatingLabelTextField {
    
    /// A enum determining if user wants to use iconFont or iconImage
    
    @IBInspectable
    var iconTypeAdapter:Int {
        
        get {
            
            return self.iconType.rawValue
            
        }
        
        set(iconIndex) {
            
            self.iconType = IconType(rawValue: iconIndex) ?? .font
            
        }
        
    }
            
    open var iconType: IconType = .font {
    
        didSet {
