Updated swift example