     /// 最大选择数
     public var maxSelected = 9
     
-    override func awakeFromNib() {
+    override public func awakeFromNib() {
         super.awakeFromNib()
         /// 相册的筛选方法
         let smartOptions = PHFetchOptions()

    
    // MARK: - Navigation

    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        super.prepare(for: segue, sender: sender)
        if segue.identifier == "ShowAllPhotos" {
            guard let photoGridController = segue.destination as? PhotoGridController, let cell = sender as? PhotoLibarayCell else {


//MARK: - PHPhotoLibraryChangeObserver
extension PhotoPickerController: PHPhotoLibraryChangeObserver {
    public func photoLibraryDidChange(_ changeInstance: PHChange) {
        DispatchQueue.global().async {
            var updateSectionFetchResults = self.items
            var reloadRequired = false
