[Swift Example] Updated Swift Syntax & Fixed Crash Bug

See related issue for more details.