iOSでtopに戻る

ViewController.swift

class ViewController: UIViewController {
    
    @IBAction func unwindToTop(seque: UIStoryboardSegue){
        
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

Main.storyboard
control でexitにもっていき、unwindToTopを設定する