bradhowes / Knob

Simple knob control for iOS and macOS that depicts its path as an arc using CoreAnimation layers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hangs on macOS

ryanfrancesconi opened this issue · comments

hi,
I was trying out your class on macOS and noticed that it is causing an infinite display loop on:
public func display(_ layer: CALayer) {

if you remove the needsDisplay there it will fix it.
needsDisplay = true

I didn't try on iOS.

Thanks!
Ryan

(XCode 15.3, latest etc)

Hi Ryan, thanks for the report and the solution. Indeed, I reproduced what you found. I've pushed basically your change and fixed two tests that run on macOS. Seems to be ok now.

Brad