FMPhotoPicker
FMPhotoPicker copied to clipboard
SDK crashes while showing warning
When a user selects more than max allowed images, the app crashes while fetching rootViewController to present warning at line 28 in FMWarningView.swift. See screenshot for reference:

here the steps you can reporduces.
set max image: 5 now select more than five 5 in picker and thin will crash
here is the solution
comment this line
// let rootVC = (UIApplication.shared.delegate?.window??.rootViewController)!
// update line number 30 with this below line
self.containerView = UIView(frame: UIScreen.main.bounds)