NoOptionalInterpolation

MIT License
Swift
iOS

1 image

Author

Description

NoOptionalInterpolation gets rid of "Optional(...)" and "nil" in Swift's string interpolation and make pluralization easier.

let age = 42

let text = "I am (age ~ "year") old" // "I am 42 years old"

Tags