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: Sources/LiveViewNative/LiveViewNative.docc/AddCustomModifier.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,42 @@ labeled(as: 5)
112
112
labeled(as: "Label")
113
113
```
114
114
115
+
``ASTDecodable(_:options:)`` will also synthesize decoders for enum cases, static functions, static members, properties, and member functions.
116
+
To exclude any of these declarations from the decoder, either prefix them with an underscore (`_`), or define them in an extension.
117
+
Static functions, static members, properties, and member functions will only receive a synthesized decoder if they return `Self` (or a type name that matches the declaration ``ASTDecodable(_:options:)`` is attached to).
0 commit comments