Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 877 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 877 Bytes

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

  1. Give this repo a Star ⭐️
  2. Add the containing file to your project
  3. 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

Buy me a coffee:

paypal crypto