mwaterfall / MWPhotoBrowser

A simple iOS photo and video browser with grid view, captions and selections.
MIT License
8.75k stars 2.71k forks source link

PSTCollectionView Compile error #664

Open tehilata opened 2 years ago

tehilata commented 2 years ago

I have an old app (2 years ago) which uses MWPhotoBrowser. When I try to compile it I get this error : Import of module 'Darwin.POSIX.dlfcn' appears within function 'PSTSimulatorAnimationDragCoefficient'

This is the reference for the code: CGFloat PSTSimulatorAnimationDragCoefficient(void) { static CGFloat (*UIAnimationDragCoefficient)(void) = NULL; //#if TARGET_IPHONE_SIMULATOR

if TARGET_OS_SIMULATOR

import

static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
    UIAnimationDragCoefficient = (CGFloat (*)(void))dlsym(RTLD_DEFAULT, "UIAnimationDragCoefficient");
});

endif

return UIAnimationDragCoefficient ? UIAnimationDragCoefficient() : 1.f;

}

Thank you !