Quantcast
Channel: SwiftUI Archives - SwiftLee
Viewing all articles
Browse latest Browse all 21

Using @Environment in SwiftUI to link Swift Package dependencies

$
0
0

The @Environment property wrapper in SwiftUI allows you to read values from a view’s environment. You’re able to configure an environment value yourself or make use of the default available values. Please read my article on Property Wrappers before diving into this one. Note that this is a different wrapper than @EnvironmentObject, which I explain … 

The post Using @Environment in SwiftUI to link Swift Package dependencies appeared first on SwiftLee.


Viewing all articles
Browse latest Browse all 21

Trending Articles