How can you make an array of segues in swift?

77 Views Asked by At

I'm trying to make an array in swift of segues so that I can switch to a random view controller via pressing a button.

1

There are 1 best solutions below

1
On

You can more reasonably maintain an array of strings that could represent the segue.identifier.