Created
February 21, 2020 17:21
-
-
Save oliverepper/b1450e1df42cf10c818bfd051ce574e5 to your computer and use it in GitHub Desktop.
CodableFileBufferExample
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
| struct MyCodable: Codable { | |
| var id: Int | |
| var key: String | |
| } | |
| let buffer = CodableFileBuffer<MyCodable>() | |
| buffer.append(MyCodable(id: 1, key: "value_one")) | |
| buffer.append(MyCodable(id: 2, key: "another_value")) | |
| let myCodables = buffer.retrieve() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment