how to stop a dispatchQueue in swift
问题 I have a DispatchQueue for a introViewController that shows a gif for 11 seconds and then display my login page... But also have a button that skip the intro and display the login. When I click it the time still running and when I am navigating in the app goes back to the login when the time ends. this is my class class GifClass: UIViewController { @IBOutlet weak var gifImage: UIImageView! @IBOutlet weak var skipButton: UIButton! override func viewDidLoad() { super.viewDidLoad() gifImage