Read about the failable initializer in Swift, and how to use it in custom types in order to return nil if proper initialization fails.
Read about the failable initializer in Swift, and how to use it in custom types in order to return nil if proper initialization fails.