---
title: "What is optional chain in swift iOS ?"  
description: "What is optional chain in swift iOS ?"  
author: "Sunil Singh"  
published: 2017-01-13  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/23184/what-is-optional-chain-in-swift-ios  
category: "ios"  
tags: ["iphone", "ios", "iphone sdk", "swift"]  
reading_time: 1 minute  

---

# What is optional chain in swift iOS ?

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.

## Answers

### Answer by 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.


---

Original Source: https://www.mindstick.com/interview/23184/what-is-optional-chain-in-swift-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
