Como criar um efeito de paralaxe no UITableView com UIImageView nas células de protótipo

Estou criando um aplicativo no iOS 8.4 com Swift.

eu tenho umUITableView com um costumeUITableViewCell isso inclui umUILabel eUIImageView. Tudo isso é bastante simples e tudo fica bem.

Estou tentando criar um efeito de paralaxe semelhante aodemonstrado nesta demonstração.

Atualmente, tenho esse código no meutableView.cellForRowAtIndexPath

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    var cell = self.tableView.dequeueReusableCellWithIdentifier("myitem", forIndexPath: indexPath) as! MixTableViewCell
    cell.img.backgroundColor = UIColor.blackColor()
    cell.title.text = self.items[indexPath.row]["title"]

    cell.img.image = UIImage(named: "Example.png")

    // ideally it would be cool to have an extension allowing the following
    // cell.img.addParallax(50) // or some other configurable offset

    return cell
}

Esse bloco existe dentro de uma classe que se parece comclass HomeController: UIViewController, UITableViewDelegate, UITableViewDataSource { ... }

Também estou ciente de que posso ouvir eventos de rolagem na minha turma viafunc scrollViewDidScroll.

Fora isso, a ajuda é apreciada!

questionAnswers(3)

yourAnswerToTheQuestion