You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try and use a button to trigger enabling the remove button it will show the extra space for a remove icon, but the icon will be invisible. A work around for this is by calling
interestsTagView.enableRemoveButton = true
in the ViewDidLoad and then, in ViewDidAppear, call
interestsTagView.enableRemoveButton = false
The text was updated successfully, but these errors were encountered:
CharlieOxendine
changed the title
Enabling Remove Button later
Enabling Remove Button later after setting it to false
Jun 17, 2021
Looks to me that draw is not called when buttons are initially disabled. One workaround would be to remove the body of the draw function from the CloseButton() completely and instead use something similar to: self.removeButton.setImage(UIImage(systemName: "trash"), for: .normal) to draw a trash icon.
You can add that line in the TagView class inside of a public init(title: String) function.
If you try and use a button to trigger enabling the remove button it will show the extra space for a remove icon, but the icon will be invisible. A work around for this is by calling
interestsTagView.enableRemoveButton = true
in the ViewDidLoad and then, in ViewDidAppear, call
interestsTagView.enableRemoveButton = false
The text was updated successfully, but these errors were encountered: