Jen Sipila
1 min readApr 20, 2018

--

Nice tutorial! But I have one question: where is the Route type and what does it do in the getDataFromDB method? It is giving me errors because Route is not defined any where.

func getDataFromDB() ->   Results<Item> {let results: Results<Route> =   database.objects(Item.self)return results}

Also, at the end of setting up these methods you say to run the project and that it will work. It actually gives a lot of errors because Item (and Route) are not yet defined.

Thank you!

--

--

Jen Sipila
Jen Sipila

Written by Jen Sipila

iOS Mobile Engineer & Astronomy enthusiast

No responses yet