Skip to content

A simple solution to decrease build time and more cleaner codebase

Notifications You must be signed in to change notification settings

EmadBeyrami/SwiftOptionalOptimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages