Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryu0118 authored Sep 30, 2023
1 parent 035c84d commit a66faf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public struct TestClient {
public extension DependencyValues {}
```
`@PublicInit` is a Member Macro and provides a public initializer.
This macro can be applied only to public structs.
`@Dependencies` is an Extension Macro that can conform TestClient to TestDependencyKey. This macro can also be applied only to structs.
This macro can be applied only to public structs. <br>
`@Dependencies` is an Extension Macro that can conform TestClient to TestDependencyKey. This macro can also be applied only to structs. <br>
`@DependencyValue` is a Member Macro; by using a Macro for the extension of DependencyValues, you can add a property of the type specified in the argument

In this example, the macro is expanded as follows.
Expand Down

0 comments on commit a66faf7

Please sign in to comment.