Last active
June 25, 2020 12:25
-
-
Save arthurpalves/5e9f912d224cee638eea974c303c0a89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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