Optional Chaining ?. Operator
Calling methods and accessing properties on optionals without crashing.
Welcome
Optional chaining lets you call methods, access properties, and subscript through a chain of optionals — safely. If any link in the chain is nil, the whole expression returns nil without crashing.
The ?. Operator
```swift
struct Address { var city: String }
struct Person { var address: Address? }
let alice = Person(address: Address(city: "Istanbul"))
let bob = Person(address: nil)
print(alice.address?.city) // Optional("Istanbul")
print(bob.address?.city) // nil
```