Lets say i have a ViewController with a textField and a button.
I want to use an unwind segue so i could get the information of the textField to my other viewController
It is not possible to create segues programmatically. They cannot exist without storyboards.
See this question.