I just started writing a new app in Xcode beta 6 and I need to write an if statement for my code to work but I keep getting the error Expected declaration
no matter where I put the if statement.
my code is
let randomNumberColorPicker = arc4random_uniform(4) + 1
if randomNumberColorPicker == 1 {
}
override func viewDidLoad() {
super.viewDidLoad()
}
What can I do to actually make this work?