I have VC1 that is subclass of UIApplication
VC1
class CustomUIApplication: UIApplication {
override func sendEvent(_ event: UIEvent) {
super.sendEvent(event)
}
func stopTimer() {
}
func startTimer() {
}
}
VC2
class MyVC: ViewController {
// want to access start timer func here
}
Instance of CustomUIApplication will be in main.swift
UIApplicationMain(
CommandLine.argc,
CommandLine.unsafeArgv,
NSStringFromClass(CustomUIApplication.self),
NSStringFromClass(AppDelegate.self)
)
Any help would be appreciated and advance thanks.