Posted in iOS, Swift

iOS – Swift | Screen transition with data

Key point : Call the ‘performSegue’ function in viewDidAppear section

1. Generate Segue

Control-Drag a mouse point from the circle of starting view controller to the ending view controller

2. Select ‘Present Modally’

3. Select the arrow line

4. Set the ‘Storyboard Segue – Identifier’

5. Insert the source code to the ‘viewDidAppear’ section at a swift file for the view controller.

    override func viewDidAppear(_ animated: Bool) {
        performSegue(withIdentifier: "SignupSegue", sender: self)


HOiT Creator

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s