Ideas Flashcards

1
Q

Check if string is empty for login page

A

Determine whether a String value is empty by checking its Boolean isEmpty property:

if emptyString.isEmpty {
print(“String is empty”)
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly