Swift 通知、相机、相册权限 封装
//
// YAuthorization.swift
// ZXCloud
//
// Created by Seasons on 2020/2/27.
// Copyright © 2020 zhongxiao. All rights reserved.
//
import UIKit
import Photos
import AssetsLibrary
import AVFoundation
typealias AuthHandel = (Bool) -> Void
class YAuthorization: NSObject {
static let shared = YAuthorization()
//MARK: - 通知
func notificationAuth(handel:@escaping AuthHandel) {
if #available(iOS 10.0, *)