Tag Archives: Optional value

Fatal error: unexpectedly found nil while unwrapping an Optional value

fatal error: unexpectedly found nil while unwrapping an Optional value This error is caused by unconditionally unwrapping an optional ¬†which had nil. Optional is a type in swift which can either contain a value or no value nil. When a optional variable or constant which contains nil is forced unwrapped… Read more »