Skip to content

Instantly share code, notes, and snippets.

@PavelGnatyuk
Created July 3, 2018 16:12
Show Gist options
  • Select an option

  • Save PavelGnatyuk/9533f3ca0ab8a07102fbc80dae7e3f90 to your computer and use it in GitHub Desktop.

Select an option

Save PavelGnatyuk/9533f3ca0ab8a07102fbc80dae7e3f90 to your computer and use it in GitHub Desktop.

Revisions

  1. PavelGnatyuk created this gist Jul 3, 2018.
    7 changes: 7 additions & 0 deletions goodMorning6.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    var isDebug = true
    func assert(_ condition: @autoclosure () -> Bool, _ message: @autoclosure () -> String) {
    guard isDebug else { return }
    if condition() {
    print(message())
    }
    }