Closed MainasuK closed 2 years ago
The TAB keep crash due to the buttonImageView = UIImageView(image: buttonImage) trigger draw(_:) so the app running in the infinite loop on the macOS.
buttonImageView = UIImageView(image: buttonImage)
draw(_:)
Bring the buttonImageView reset code before setNeedsDisplay fix it. And iOS/iPadOS and macOS all works
buttonImageView
setNeedsDisplay
The TAB keep crash due to the
buttonImageView = UIImageView(image: buttonImage)
triggerdraw(_:)
so the app running in the infinite loop on the macOS.Bring the
buttonImageView
reset code beforesetNeedsDisplay
fix it. And iOS/iPadOS and macOS all works