How do you properly unwrap both normal and implicit optionals?
There seems to be confusion in this topic and I would just like to have a reference for all of the way
You can also create extensions for particular type and unwrap safely with default value. I did the following for the same :
extension Optional where Wrapped == String { func unwrapSafely() -> String { if let value = self { return value } return "" } }