Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Firebase #16

Closed
rlee1990 opened this issue Apr 2, 2017 · 5 comments
Closed

Using Firebase #16

rlee1990 opened this issue Apr 2, 2017 · 5 comments

Comments

@rlee1990
Copy link

rlee1990 commented Apr 2, 2017

Hi trying to use this with Firebase. I am using the withURL option but nothing shows when i search. The data is pulling from firebase.

@PhilippeBoisney
Copy link
Owner

You have to first fetch all datas from firebase, then when all your datas are downloaded, you can use "setDatasWithUrl(datas: your_url_list)"

@rlee1990
Copy link
Author

rlee1990 commented Apr 3, 2017

I have done all of that i even printed the data to make sure it was coming through and it was. Just doesn't show in the search.

@PhilippeBoisney
Copy link
Owner

Can you provide some examples with code ?

@rlee1990
Copy link
Author

rlee1990 commented Apr 3, 2017

I had my code like this
ref.queryOrdered(byChild: "firstName").observe(.childAdded, with: { (snapshot) in

        self.usersArray.append((snapshot.value as? NSDictionary)!)
        print("Rickey: \(self.usersArray)")

and suggestionListWithUrl.append(ModernSearchBarModel(title: usersArray["firstName"], url: usersArray["profilePic"]

@rlee1990
Copy link
Author

rlee1990 commented Apr 3, 2017

Not sure if i was doing something wrong. Still only a few months in with Swift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants