Swift: optional value

Error:

fatal error: unexpectedly found nil while unwrapping an Optional value

Solution:
Check to ensure the optional value is not nil before unwrapping i.e. absolutely NO “!” symbol in code:

Print Friendly