Skip to content

tion126/XTAssetsPicker

Repository files navigation

XTAssetsPicker

License MIT  CocoaPods  CocoaPods 

Usage

Simple Usage

    func show() {
        
        let config = XTAssetsConfiguration()
        config.maxminumCount = 5
        config.numberOfColum = 3
        self.presentAssetsPicker(configuration: config, delegate: self)
    }
    
    func didFinishPickingAssets(assets: [PHAsset]) {
        
        self.datas.append(contentsOf: assets)
        self.tableView.reloadData()
    }

Installation

CocoaPods

  1. Add pod 'XTAssetsPicker' to your Podfile.
  2. Run pod install or pod update.
  3. import XTAssetsPicker.

gif