See this add-on on the kodi.tv showcase
xbmcswift2 is a small framework to ease development of KODI addons.