You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ let person = PersonBuilder(age: 42).build()
30
30
importBuildable
31
31
32
32
@Buildable
33
-
structPerson {
33
+
structPerson: Sendable{
34
34
let name: String
35
35
let age: Int
36
36
let address: Address
@@ -46,10 +46,10 @@ struct Person {
46
46
47
47
@Buildable
48
48
enumSeason {
49
-
case.winter
50
-
case.spring
51
-
case.summer
52
-
case.autumn
49
+
casewinter
50
+
casespring
51
+
casesummer
52
+
caseautumn
53
53
}
54
54
55
55
@Buildable
@@ -69,7 +69,7 @@ let appState = AppStateBuilder(persons: [max]).build()
69
69
```
70
70
Expanded macro
71
71
```swift
72
-
structPersonBuilder {
72
+
structPersonBuilder: Sendable {
73
73
var name: String=""
74
74
var age: Int=0
75
75
var address: Address =AddressBuilder().build()
@@ -123,7 +123,7 @@ The library can be installed using Swift Package Manager.
123
123
```
124
124
- If a classor a struct has one or more initialisers, the macro will use the first/top one
125
125
- 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
127
127
128
128
## Builder default values
129
129
The list of default values is limited to the values specified in the below table.
0 commit comments