Swift translation of Natasha Murashev's function showed in http://natashatherobot.com/ios-library-tinder-animation/