I have enum list displayed on the screen. If one of the list is clicked in then it will display pop-up or alert view. I could achieve alert if it's button here but Im not using button in this. Is there any way to display alert on non-button fields ?
Code looks like :-
public enum Status: String{
case food = "food"
case drink = "drink"
var index: Self.AllCases.Index {
return Self.allCases.firstIndex { self == $0 }!
}
}
}
looking for Solution - When drink is selected in then enum it will display simple alert