Use exclamation mark to remove quotions from optional variables in swift
optional has an optional ("") wrapped around the String. The ("") means that, in order for us to access the value, we must unwrap the optional. One way we could do this is by force-unwrapping the optional using an (!).
No comments:
Post a Comment