Skip to content

Instantly share code, notes, and snippets.

@dmytro-anokhin
Created November 17, 2019 21:34
Show Gist options
  • Save dmytro-anokhin/126ca40f1fc8840d0570999f83216e2e to your computer and use it in GitHub Desktop.
Save dmytro-anokhin/126ca40f1fc8840d0570999f83216e2e to your computer and use it in GitHub Desktop.
struct DecodingOptions {
enum Mode {
case synchronous
case asynchronous
}
static var `default`: DecodingOptions {
DecodingOptions(mode: .asynchronous, sizeForDrawing: nil)
}
var mode: Mode
var sizeForDrawing: CGSize?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment