Port Haneke to Swift

cc @hpique @joanromano @oriolblanc