EchoWaveViewController to swift