iOS SDK update to include mode switch function