Daggerpov / Spawn-App-iOS-SwiftUI

Spawn: Spontaneity made easy. This app aims to ease the friction of making spontaneous plans with your friends, and get rid of the infinite group chat headache.
Other
3 stars 0 forks source link

`Location` model type matching back-end + `User` `@EnvironmentObject` instead of prop-drilling #51

Closed Daggerpov closed 1 day ago

Daggerpov commented 1 day ago

Noticed technical debt, where we're constantly passing through a user object to child-views, and this gets crazy when we keep doing this from view -> view -> view -> view. This is known as prop-drilling in the React ecosystem, and we can avoid it in SwiftUI by using @EnvironmentObject

(No UI Changes)