StevenLambion / SwiftDux

Predictable state management for SwiftUI applications.
http://stevenlambion.github.io/SwiftDux
MIT License
153 stars 10 forks source link

Provide Store as Environment Value #44

Closed StevenLambion closed 4 years ago

StevenLambion commented 4 years ago

This PR replaces the store environment object wrapper with a type-erased environment value. This reduces the number of references created within the SwiftUI view hierarchy, and allows a single provideStore to be used by views that access the application state by a protocol type instead of a concrete type.

codecov-commenter commented 4 years ago

Codecov Report

Merging #44 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #44   +/-   ##
=======================================
  Coverage   77.57%   77.57%           
=======================================
  Files          20       20           
  Lines         446      446           
=======================================
  Hits          346      346           
  Misses        100      100           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update eb06ddf...0a67bb2. Read the comment docs.