pikko icon indicating copy to clipboard operation
pikko copied to clipboard

fix: weak delegates to prevent leaks

Open gbuela opened this issue 3 years ago • 1 comments

Strong delegate references are creating reference cycles. This isn't noticeable with the Example app because there's a single view controller. But if you'd use Pikko in a VC that was presented as modal or pushed into a navigation stack, the memory debugger would show that instances of the VC, Pikko, HueView and BrightnessSaturationView never go away due to the cycle created by the delegates.

gbuela avatar Nov 28 '21 17:11 gbuela

I also noticed this, thanks!

Alipacman avatar Oct 29 '22 08:10 Alipacman