What is optional chain in swift iOS ?

Last updated:9/23/2020 10:21:48 PM

1 Answers

Sunil Singh
Sunil Singh

The Process of querying and calling properties ,methods and subscripts on an optional that might currently be nil is called optional chaining .If the optional chaining contains a value, the property, method, or subscript call succeeds .Multiple queries can be chained together and if any link in chain is nil then entire chain fails.