Swift Optionals? Don’t Forget to Unwrap!

There is a compiler error that throws me off every time I see it.  It takes the form, ‘ClassName?’ does not have a member named ‘memberName’ This can happen when you’ve declared a variable as an optional, but forget to unwrap that optional when you attempt to call a method on it. For example, given this […]