123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // IntroduceController.swift
- // BFRecordScreenKit_Example
- //
- // Created by 胡志强 on 2021/11/25.
- // Copyright © 2021 CocoaPods. All rights reserved.
- //
- import BFRecordScreenKit
- import BFUIKit
- import Foundation
- import Photos
- class IntroduceController: BFBaseViewController {
- var asset: PHAsset?
- override func viewDidLoad() {
- super.viewDidLoad()
- let vc = BFRecordScreenController()
- if asset != nil {
- vc.assets = [asset!]
- }
- vc.nextActionHandle = {
- DispatchQueue.main.async { [weak self] in
- let controller = VideoExportController()
- // controller.export.voiceList = vc.recordList
- // controller.export.exporter?.assets = vc.avasset
- self?.navigationController?.pushViewController(controller, animated: true)
- }
- }
- vc.closeActionHandle = {
- self.backBtnClick()
- }
- vc.view.frame = view.frame
- addChildViewController(vc)
- view.addSubview(vc.view)
- }
- }
|