Skip to content

Instantly share code, notes, and snippets.

@fortmarek
Created September 9, 2020 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fortmarek/dca4000c0cb1d74099e184a8f49bb059 to your computer and use it in GitHub Desktop.
Save fortmarek/dca4000c0cb1d74099e184a8f49bb059 to your computer and use it in GitHub Desktop.
static var attributes: [String] = []
static func preprocess(_ arguments: [String]) throws {
...
let attributes: [String] = try JSONDecoder().decode([String].self, from: data)
Scaffold.attributes = attributes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment