title: Pass data through segue
body: <p>I'm doing simple iOS application with tableview controller and detailView. All I want is to pass data through segue.</p>
  
  <p><img src="https://i.stack.imgur.com/2KhOt.png" alt="this is how it looks like"></p>
  
  <p>this is how it looks.</p>
  
  <p>All I want is that u click on "Markíza" it will open URL video number 1 and if u click on "TV JOJ" it will open URL video number 2 in player.</p>
  
  <p>My tableview cells:</p>
  
  <pre><code>    struct Program {
          let category : String
          let name : String
      }
  
  
     var programy = [Program]()
          self.programy = [Program(category: "Slovenské", name: "Markíza"),
                           Program(category: "Slovenské", name: "TV JOJ")]
  </code></pre>