title: xcode open url in second view controller based on button pressed in first view controller
body: <p>This is beginner question. So please have a patience. I have two view controllers.</p>
  
  <p>First ViewController has two buttons. When the first button is pressed I would like to open TargetViewController with url to Google and when the second button is pressed I would like to open same TargetViewController with url to Yahoo.</p>
  
  <p><a href="https://i.stack.imgur.com/D8aqF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D8aqF.png" alt="visualization of the problem"></a></p>
  
  <p><a href="https://i.stack.imgur.com/dbTCg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dbTCg.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Vwrtk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vwrtk.png" alt="enter image description here"></a></p>
  
  <p>I have create demo project you can download here: <a href="https://www.dropbox.com/s/uxjudu1hztyhmk2/Demo.zip?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/uxjudu1hztyhmk2/Demo.zip?dl=0</a></p>
  
  <p>If you can help please finish this in simple way with explaining each step you made. It would be a lot of help if you could re upload fished and working example.</p>
  
  <p>I tried previews answers to the same problem/question but they have multiple errors and beginner like me is unable to solved them. Thank you. </p>