I am creating a tic tac toe game and I came upon this error that I don\'t really understand: \"Missing return in a function expected to return \'(location:String, pattern:St
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { let button = DropDownButton() switch button { case userButton: return userButton.dropView.dropDownOptions.count case categoryButton: return categoryButton.dropView.dropDownOptions.count default: return 0 }