Swift: Execute closure prior to UIRefreshControl start

94 Views Asked by At

We have this:

self.refreshControl?.addTarget(self, action: #selector(MyController.userRefresh(refreshControl:)), for: UIControlEvents.valueChanged)

func userRefresh (refreshControl: UIRefreshControl) {
    sync()
}

Is there another UIControlEvents event which we can listen to in order to execute code prior to the UIRefreshControl beginning to spin?

For the valueChanged event the spinner is already active.

0

There are 0 best solutions below