title: How do I check the state of a checkbox for macOS applications using Swift
body: <p>The task seemed relatively simple, I wanted an if statement to determine if a check box is checked or not apparently check boxes but am at a loss</p>
  
  <p>I've tried </p>
  
  <p>if checkbox.state == everythign i can think of but it always errors either EXC_BAD_INSTRUCTION or using wrong cant convert variable type to other variable type</p>