Hello
Need so help here! None of the examples I've found work:
Here's my code: I have two predicates "2" and "ELA" to open a specific plist file. I have it working with one but need to use both.
When I try the construction below i get error : "Variable binding in a condition requires an initializer"
if case "2", case "ELA" = passedFromA { //Variable binding in a condition requires an initializer
let filePath = Bundle.main.path(forResource: "Grade2ELA", ofType: "plist")// passedFromA is optional, need to test for nil
print("filePath", filePath!)
figures = Figure.figuresList(filePath!)
print("figures count", figures.count)
print ("FProcess G")
let getdata = "\(String(describing: appDelegate?.nameGrade))"
print("Check data : \(getdata)")
}