edit code swift example