Swift Optional Optimizer
A simple Protocol Oriented solution to decrease build time and more cleaner code base.
Are you tired of using ??
in your code base? Did you know it can increase your build time?
Usage
- Give this repo a Star
⭐️ - Add the containing file to your project
- Codebase example:
You can simply use this:
let nulableString: String?
print(nulableString.orEmpty)
Instead of using:
let nulableString: String?
print(nulableString ?? "")
Warning:
you can add up other types currently supported:
String, Int, Bool, Double, Float