actionButtonTappedFor is now working i need help, please!
AlexGZC opened this issue · 1 comments
AlexGZC commented
Hi everyones, i am facing an issue in which i am not able to excute an action after tapping the button on "ShowNoResultsPlacelhoder()", i already set as delegate , and i want to excute an action when the user taps on: Try Again.
Please help.
HamzaGhazouani commented
Hi @AlexGZC,
To receive action, you should implement the protocol PlaceholderDelegate
like bellow:
override func viewDidLoad() {
super.viewDidLoad()
placeholderTableView?.placeholderDelegate = self
}
}
extension ViewController: PlaceholderDelegate {
func view(_ view: Any, actionButtonTappedFor placeholder: Placeholder) {
print(placeholder.key.value)
placeholderTableView?.showDefault()
}
}