Closed Viorel84 closed 8 years ago
I'm having the same issue! Has anybody worked that out?
Nope! If you are using Parse forget about it, it is closing down... And the support from Koloda, well, there is no support :)
Any alternatives for a backend provider to fetch custom cards and connect them with swipe function?
I would recommend Firebase https://www.firebase.com/ . It's google... (and it's the same thing as Parse). Or your own MySQL server and fetch data with a json file.
Thanks! The thing is that I already built user authentication with ParseUI Login, so now I have to scrap it and start all over again. It would be nice if someone had an example for Koloda connecting with a backend provider to allow custom cards rather than just images. I think it is a common approach that many developers use in their projects.
It is the only approach... Unfortunately you will have to take it from the beginning because Parse will be available only this year until it will be closed. If you will use Firebase you can find a login demo here: https://github.com/firebase/login-demo-ios for iOS. The only thing is that all the examples are for Objective C and not for Swift.
Yeah I already noticed that. I just started with iOS (and Swift) so I'm not skilled in Objective C. But how did you solve your Koloda issue?
An alternative is also to migrate the Parse server to Heroku and MongoDB, hence you can reuse Parse SDK and all. I really want to make Koloda linked with Parse work.
I may try both options, an own server as well as firebase.
Hi @Viorel84 . You have some common issues: 1) You're reloading Koloda right after call of asynchronous function, so it doesn't wait for response from query. 2) You don't map your response to RetrieveData class 3) You don't save response of query.
I worked my issue out. Had some nonsense between CustomView file and CustomView xib. Thanks for this great library!
Hi,
I am using Koloda to fetch an Array of Objects into the Card so every card gets a row from my database. I have seen the networking exemple with Alamofire and tried my own code that implements Parse using the same exemple. It is getting the objects from Parse but I have not been able to display them into the cards. Weird, actually I have no errors and the console display "Successfully retrieved 5 objects", but this is only the loadData() function.
What am I basically trying to achieve: I have (MyView.xib, MyView.swift) that provides the labels. (What I want, is to retrieve from the array to texts into the labels from xib)
I am retrieving the objects but I have not been successful on displaying them into the card:
Some Errors: If I am returning the "numberOfCards" --- I am getting this error:
If I return: "return UInt (self.data.count)" I am not getting any errors but the cards are not being displayed at all.
I am a bit of a newbie, but pointed into a good direction I will be able to get it done.
This is my ViewController.swift code:
This is MyView.swift
I would deeply appreciate some help!