Tag: agreement

Simple guide to Automatic grammar agreement in Swift

Bet every iOS developer had this embarrassing bug reported at least once in their career and had to deploy a simple fix. count == 1 ? "\(count) Apple" : "\(count) Apples" What if there was a more elegant way to handle this? After all, we iOS developers would want our code...