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 |




