Skip to content

Instantly share code, notes, and snippets.

@caldofran
Created March 6, 2020 15:37
Show Gist options
  • Save caldofran/11bf959eeca7940aa85f239b3c793721 to your computer and use it in GitHub Desktop.
Save caldofran/11bf959eeca7940aa85f239b3c793721 to your computer and use it in GitHub Desktop.

Revisions

  1. caldofran created this gist Mar 6, 2020.
    17 changes: 17 additions & 0 deletions screen_extensions.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    extension Screen {
    static func offer(id: String) -> Self {
    return .init() { OfferViewController(id: id) }
    }
    }

    extension Screen {
    static func job(id: String) -> Self {
    return .init() { JobViewController(id: id) }
    }
    }

    extension Screen {
    static func document(url: URL) -> Self {
    return .init() { DocumentViewController(url: url) }
    }
    }