Updated iOS samples with the SDK changes