diff --git a/DXPhotoPicker/Classes/Controllers/DXPhotoPickerController.swift b/DXPhotoPicker/Classes/Controllers/DXPhotoPickerController.swift index f6c54c6..313cb3c 100644 --- a/DXPhotoPicker/Classes/Controllers/DXPhotoPickerController.swift +++ b/DXPhotoPicker/Classes/Controllers/DXPhotoPickerController.swift @@ -65,10 +65,8 @@ public class DXPhotoPickerController: UINavigationController, UINavigationContro viewController!.reloadTableView() case .Denied: viewController!.showUnAuthorizedTipsView() - break case .Restricted: viewController!.showUnAuthorizedTipsView() - break case .NotDetermined: PHPhotoLibrary.requestAuthorization({ (status) -> Void in guard status != .NotDetermined else { diff --git a/DXPhotoPicker/Classes/Models/DXAlbum.swift b/DXPhotoPicker/Classes/Models/DXAlbum.swift index 85660ab..d64d2b7 100644 --- a/DXPhotoPicker/Classes/Models/DXAlbum.swift +++ b/DXPhotoPicker/Classes/Models/DXAlbum.swift @@ -9,7 +9,10 @@ import UIKit import Photos - // @note use this model to store the album's 'result, 'count, 'name, 'startDate to avoid request and reserve too much times + /* + @note use this model to store the album's 'result, 'count, 'name, 'startDate + to avoid request and reserve too much times. + */ class DXAlbum: NSObject { var results: PHFetchResult?