Optional Chaining
A process for querying and calling properties, methods, and subscripts on an optional that might currently be nil .Multiple queries can be chained together, and the chain fails gracefully if any link in the chain is nil . Optional Chaining as an Alternative to Forced Unwrapping ! force unwrapping triggers a runtime error when the optional is nil . Use the optional chaining to check if the optional value querying is succeed. the chain return optional value is nil , the optional chaining fail. the chain return optional contains a value, the optional chaining succeed. Force Unwrapping ...