Skip to content

Commit 9379b48

Browse files
authored
Update README.md
1 parent 80707b3 commit 9379b48

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ The project objective is to enhance the usage experience of the Codable protocol
2222
## Installation
2323

2424
#### Cocoapods
25-
> *No longer supported since 1.0.0, use version 0.3.3 if your project uses <Xcode 15 or <iOS 13.*
2625
```pod 'CodableWrapper', '0.3.3'```
26+
> No longer supported since 1.0.0, use version 0.3.3 if your project uses <Xcode 15 or <iOS 13.
2727
2828
#### Swift Package Manager
2929

@@ -112,7 +112,7 @@ final class CodableWrapperTests: XCTestCase {
112112
@Codable
113113
struct TestModel {
114114
let name: String
115-
let balance: Double = 0
115+
var balance: Double = 0
116116
}
117117

118118
// { "name": "jhon" }
@@ -134,7 +134,7 @@ final class CodableWrapperTests: XCTestCase {
134134
```swift
135135
@Codable
136136
struct TestModel {
137-
let userName: String = ""
137+
var userName: String = ""
138138
}
139139

140140
// { "user_name": "jhon" }
@@ -145,7 +145,7 @@ final class CodableWrapperTests: XCTestCase {
145145
```swift
146146
@Codable
147147
public struct TestModel {
148-
public let userName: String = ""
148+
public var userName: String = ""
149149

150150
// Automatic generated
151151
public init(userName: String = "") {
@@ -162,7 +162,7 @@ final class CodableWrapperTests: XCTestCase {
162162
@Codable
163163
struct TestModel {
164164
@CodingKey("u1", "u2", "u9")
165-
let userName: String = ""
165+
var userName: String = ""
166166
}
167167

168168
// { "u9": "jhon" }
@@ -176,7 +176,7 @@ final class CodableWrapperTests: XCTestCase {
176176
@Codable
177177
struct TestModel {
178178
@CodingNestedKey("data.u1", "data.u2", "data.u9")
179-
let userName: String = ""
179+
var userName: String = ""
180180
}
181181

182182
// { "data": {"u9": "jhon"} }
@@ -193,7 +193,7 @@ final class CodableWrapperTests: XCTestCase {
193193
}
194194

195195
@CodableSubclass
196-
class BaseModel: BaseModel {
196+
class SubModel: BaseModel {
197197
let age: Int
198198
}
199199

0 commit comments

Comments
 (0)