I'm trying to understand how init!() works in Swift. Here's my test:
struct InitTest {
var text: String
init!(text: String) {
self.text = text
}
}
let testResult = InitTest(text: "Hello!")
For my understanding, testResult should be of type InitTest (unwrapped), but it's actually still InitTest?.
How is init!() different from init?() then?