I am new to swift and have a small amount of code that I just can't seem to get to work:
if Tick1.state == NSOnState {
Textmain4.stringValue = "Quality Enabled"
}
This if statement spits out
fatal error: unexpectedly found nil while unwrapping an Optional value
What do I need to do to fix this?
Tick1 is an NSButton and Textmain4 is an NSTextField.