Skip to content

Instantly share code, notes, and snippets.

@arthurpalves
Last active June 25, 2020 12:25
Show Gist options
  • Select an option

  • Save arthurpalves/5e9f912d224cee638eea974c303c0a89 to your computer and use it in GitHub Desktop.

Select an option

Save arthurpalves/5e9f912d224cee638eea974c303c0a89 to your computer and use it in GitHub Desktop.
public func snapshot(with context: Context, completion: @escaping (AccountEntry) -> ()) {
let previewProduct = Product(
id: "123a67cf",
title: "Main Account",
amount: 280.25,
iban: "NL27AAA0726252510",
type: .main
)
let entry = AccountEntry(date: Date(), product: previewProduct)
completion(entry)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment