Pass Functions as Closure Parameters To SwiftUI Views
Daily Coding Tip 029
You don’t always have to share an EnvironmentObject between SwiftUI views in order to give them access to the same methods. In fact you really shouldn’t do this in most cases, because most subviews should have very few responsibilities. It will help your debugging if you reduce the amount of data that each view can modify. If …
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.


