     public func tagTouched(tag: TagView) {
         delegate?.tagTouched?(tag)
     }
-}
+    
+}

    private let textLabel : UILabel
    
    public override init(frame: CGRect) {
        
        dismissView = UIView()
        icon = UIImageView()
        textLabel = UILabel()

        dismissView.userInteractionEnabled = true
        textLabel.userInteractionEnabled = true
        
        dismissView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(TagView.iconTapped)))
        textLabel.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(TagView.labelTapped)))
    }
    
    public required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    public init(text: String) {
        dismissView = UIView()
        icon = UIImageView()
        textLabel = UILabel()
