Relative Content

Tag Archive for firebaseswiftui

How to add and access user specific data in firebase using swiftui

So im building an app where im storing a list of exercises that a user selects into a firestore database. However, currently whenever every user has access to all the workouts made. I want to make it so that an user only has access to the workouts they have made? How would that be possible?

Cannot find ‘Firebase’ in scope

I’m relatively new to SwiftUI and have been following along with a tutorial to aid me in creating an app that has form validation and user login features, however I keep getting an error message that says Cannot find ‘Firebase’ in scope. I have added the packages correctly but can’t figure out whats going wrong? The errors throw in the createUser() function and fetchUser()