Sample works with the new v3.2 API

Updates API in samples

Adds iOS and Mac projects. Convient Xcode project to test
the sample really easy.