SnapSliderFilters icon indicating copy to clipboard operation
SnapSliderFilters copied to clipboard

Main Thread Checker Warning

Open Sonali2009 opened this issue 6 years ago • 2 comments

Hi Paul, I am getting this warning in SNfilter init() saying - " UI API called on a background thread: -[UIImageView initWithFrame:]". Any suggestions? Thanks in advance.

screen shot 2018-04-04 at 1 53 42 pm

Sonali2009 avatar Apr 04 '18 17:04 Sonali2009

Hi @Sonali2009,

Indeed, SNFilter must be created in the main thread. The call to the initializer must be wrapped into a DispatchQueue.main.async {} block. I will look at it soon to update the source code. Thank you!

pauljeannot avatar Apr 09 '18 08:04 pauljeannot

same issue

boranyldrm avatar May 24 '18 15:05 boranyldrm