vitorjmoriya / SwiftUIQuizz

0 stars 1 forks source link

feat(Persistence): SaveSystem implemented and tested #18

Closed fingerson closed 2 years ago

fingerson commented 2 years ago

Implemented the SaveSystem static Class inside the Manager namespace.

Class has 7 static methods:

The class also has its own errors:

enum SaveSystemError: Error { case invalidDirPath case fileDoesNotExist case failedWriting case failedReading case invalidStringEncoding case invalidObject }

Class was tested in a Playground.