From 31ecb57f1407a177f34b71ed662abaaf0524d206 Mon Sep 17 00:00:00 2001 From: Oleksii Dykan Date: Thu, 18 Jan 2018 14:23:43 +0100 Subject: [PATCH] Add enum example to README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index ae3b83b..4a4a10c 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ This library helps you to use your custom types that conform to `Codable` protoc ```swift struct Model: Codable { + enum MyEnum: Int, Codable { + case one, two, three + } + let stringExample: String let booleanExample: Bool let numberExample: Double @@ -18,6 +22,7 @@ struct Model: Codable { let arrayExample: [String] let nullExample: Int? let objectExample: [String: String] + let myEnum: MyEnum } ```