improved swift example and set examples back to older protocol to keep it running