Geoff Hackworth
1 min readJun 22, 2018

--

I’m pretty sure the example code has a memory cycle. The view controller owns the table view, which owns the table view cells, which have a buttonAction closure that strongly captures the view controller. The closure should use weak or unowned to avoid capturing self.

--

--

Geoff Hackworth
Geoff Hackworth

Written by Geoff Hackworth

Independent and freelance software developer for iPhone, iPad and Mac

No responses yet