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?
- 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 ?? "")
you can add up other types currently supported:
String, Int, Bool, Double, Float