Yasir
1 min readOct 4, 2020

--

Hey , In question number 13 , you told the first way to unwrap an optional is "if let" and you are not using any let in example !!

Here you are wrong a bit !

The correct example will be following :

var authorName : String? = "Mohd Yasir"

if let authorName == authorName {

print("Author name is \(authorName)")

else{

print("No Author Name")

}

--

--

Yasir
Yasir

Written by Yasir

Exploring Swift, SwiftUI, and Apple Universe.

No responses yet