I know that the title sounds complicated, but the question is not.
I have this Swift code:
class MyClass {
let helloWorld: (check: Bool)->()
init(helloWorld: (check: Bool)->()) {
self.helloWorld = helloWorld
}
}
let instanceOfMyClass = MyClass(helloWorld: (check: Bool) -> {
})
This gives me an error. What is the correct syntax for the last instruction?
Thanks!