Skip to content

Commit 9dce398

Browse files
committed
Update README
1 parent 115f451 commit 9dce398

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
@@ -30,7 +30,7 @@ let person = PersonBuilder(age: 42).build()
3030
import Buildable
3131

3232
@Buildable
33-
struct Person {
33+
struct Person: Sendable {
3434
let name: String
3535
let age: Int
3636
let address: Address
@@ -46,10 +46,10 @@ struct Person {
4646

4747
@Buildable
4848
enum Season {
49-
case .winter
50-
case .spring
51-
case .summer
52-
case .autumn
49+
case winter
50+
case spring
51+
case summer
52+
case autumn
5353
}
5454

5555
@Buildable
@@ -69,7 +69,7 @@ let appState = AppStateBuilder(persons: [max]).build()
6969
```
7070
Expanded macro
7171
```swift
72-
struct PersonBuilder {
72+
struct PersonBuilder : Sendable {
7373
var name: String = ""
7474
var age: Int = 0
7575
var address: Address = AddressBuilder().build()
@@ -123,7 +123,7 @@ The library can be installed using Swift Package Manager.
123123
```
124124
- If a class or a struct has one or more initialisers, the macro will use the first/top one
125125
- For structs without an initialiser, the macro makes a best guess to decide how the implicit memberwise initializer could look like. This best guess might fail for declarations that have not been considered during implementation of the macro
126-
- As of Swift 6.0.3 and Xcode 16.2 (01.03.2025) it is not possible to use the generated builders inside the SwiftUI `#Preview` closure
126+
- As of Swift 6.1.0 and Xcode 16.3 (14.05.2025) it is not possible to use the generated builders inside the SwiftUI `#Preview` closure
127127

128128
## Builder default values
129129
The list of default values is limited to the values specified in the below table.

0 commit comments

Comments
 (0)