Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import Foundation
  2. import PlaygroundSupport
  3.  
  4. PlaygroundPage.current.needsIndefiniteExecution = true
  5.  
  6. struct Gist: Decodable {
  7.  
  8. // implement Gist struct
  9. // ...
  10.  
  11. let files: [String: GistFile]
  12. let owner: Owner
  13. }
  14.  
  15. struct Owner: Decodable {
  16.  
  17. // implement Owner struct
  18. // ...
  19.  
  20. }
  21.  
  22. struct GistFile: Decodable {
  23.  
  24. // implement GistFile struct
  25. // ...
  26.  
  27. }
  28.  
  29. func load() {
  30.  
  31. // load gists data with URLSession.shared.dataTask and print loaded gists info
  32. // ...
  33.  
  34. }
  35.  
  36. load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement