I have a timer that runs ok. However, when I try to stop the timer, neither function is executed. The code is as follows:
` func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(animated)
print(#function)
menuTimer = nil
menuTimer?.invalidate()
}
override func viewDidDisappear(_ animated: Bool) {
print(#function)
super.viewDidDisappear(animated)
menuTimer = nil
menuTimer?.invalidate()
}
Is this a known issue or am i doing something wrong.