More work on the Swift iOS sample.