Template iOS App integration with SmartThings?

I’m exploring writing my own iOS app that integrates with SmartThings. Surely by now there is some open source app or a template for connecting your app with the SmartThings API. Preferably in swift. I’d prefer not to recreate the wheel. Can anyone point me in the right direction? Thanks!