What is NoOptionalInterpolation?

NoOptionalInterpolation gets rid of “Optional(…)” and “nil” in Swift’s string interpolation. This is particularly helpful when you set text to UI elements such as UILabel or UIButton. Since XCode currently, as of the time this is written, does not show any warnings when interpolating Optionals, and you might sometimes need to change your variables’ type between Optional and non-Optional, this library ensures that the text you set never ever includes that annoying additional “Optional(…)”. You can also revert to the default behavior when needed.

Besides, the library makes pluralizing your text easier with custom operators.

Overview

  • Pricing: Free
  • Resource Link: https://github.com/T-Pham/NoOptionalInterpolation
  • Resource Maker: Thanh Pham
  • Mobile Platform Destination: iOS Apps
  • Mobile Platform Support: Native iOS
  • Programming Languages: Swift
  • CocoaPods: NoOptionalInterpolation
  • Carthage: T-Pham/NoOptionalInterpolation