TIL #swiftlang function type variance (contravariance) which works really well if you want to call your UIActionHandler code from outside a UIAction! So (UIAction?) -> Void is a subtype of (UIAction) -> Void because it's more permissive — it can handle everything the non-optional version can, and more. Btw UIKit ftw in quite a lot of cases! 😅
| Languages | 🇬🇧N 🇮🇹C2 🇩🇪C2 🇫🇷C1 🇹ðŸ‡C1 🇻🇳B1 🇬🇷A2 |
