title: Tic Tac Toe in swift - Winning line
body: <p>I followed a tut to help me build a tic tac toe game to keep learning Swift. In doing so I also wanted to add winning slashes for whatever combination that wins.</p>
  
  <p>In my code I have</p>
  
  <pre><code>let winningCombinations = [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6]]
  </code></pre>
  
  <p>these are the buttons tags.</p>
  
  <p>I have created labels that are just color bars with no text to be the slashes.
  I connected them one as </p>
  
  <pre><code>@IBOutlet weak var lineFirstRow: UILabel! 
  </code></pre>
  
  <p>then hid the label on the storyboard.</p>
  
  <p>I have been trying things like</p>
  
  <pre><code>let lineRowOne = [0, 1, 2]
  
  if lineRowOne = true {
   lineFirstRow.isHidden = true
  } else {
   lineFirstRow.isHidden = false
  }
  </code></pre>
  
  <p>I know this is not correct.</p>