When to use Optionals in Swift

Check out When to use Optionals in Swift by JR. Here is an excerpt:

Being new to Optionals, sometimes I struggle for good examples on where and when to use them.

Here’s an example I link that show how one could use an Optional to model an AccountBalance.

struct AccountBalance {
    init(_ ledger: Money, overdraftLimit: Money? = nil) {
        self.ledger =...

The full article is available here.