Skip to content

Commit 31ecb57

Browse files
author
Oleksii Dykan
authored
Add enum example to README
1 parent 6a6fcc1 commit 31ecb57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ This library helps you to use your custom types that conform to `Codable` protoc
1111

1212
```swift
1313
struct Model: Codable {
14+
enum MyEnum: Int, Codable {
15+
case one, two, three
16+
}
17+
1418
let stringExample: String
1519
let booleanExample: Bool
1620
let numberExample: Double
1721
let dateExample: Date
1822
let arrayExample: [String]
1923
let nullExample: Int?
2024
let objectExample: [String: String]
25+
let myEnum: MyEnum
2126
}
2227
```
2328

0 commit comments

Comments
 (0)