Dan Korkelia
1 min readJan 6, 2018

--

Hi,

Also a photographer :) Very nice article.

I recently wrote my own app and used a local JSON file for data. I used a do {} catch {} setup to get the file data and handle the possible (very unlikely) error.

As I’m learning swift, I find it handles errors really well. Also wanted to say that the “throws” method is only used sparsely and only some built in functions require it. The use of optionals is a really good way to keep your code stable.

--

--