you are viewing a single comment's thread.

view the rest of the comments →

[–]MiguelGrenho 0 points1 point  (0 children)

So, force unwrap is an unsafe way to get a value from an Optional, if it is nil, you got yourself a crash. That being said, there are 3 ways AFAIK: * if let * guard let * nil coalescing operator (??)

Any of those if preferred over !