Make Segue programmatically in Swift : <p>I have two VCs: VC1 and VC2.
In VC1, I have a <code>finish button</code> which I programmatically made and a <code>result array</code> I want to pass to VC2.</p>

<p>I know how to make Segue in Storyboard, but I cannot do that at this moment since the <code>finish button</code> is programmatically made. </p>

<p>If I want to pass result array using segue, is there a way to make the segue programmatically? If this is not possible, should I just present VC2 using <code>presentViewController</code> and set a delegate to pass the <code>result array</code>?</p>
