IntroduceController.swift 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // IntroduceController.swift
  3. // BFRecordScreenKit_Example
  4. //
  5. // Created by 胡志强 on 2021/11/25.
  6. // Copyright © 2021 CocoaPods. All rights reserved.
  7. //
  8. import BFRecordScreenKit
  9. import BFUIKit
  10. import Foundation
  11. import Photos
  12. class IntroduceController: BFBaseViewController {
  13. var asset: PHAsset?
  14. override func viewDidLoad() {
  15. super.viewDidLoad()
  16. let vc = BFRecordScreenController()
  17. if asset != nil {
  18. vc.assets = [asset!]
  19. }
  20. vc.nextActionHandle = {
  21. DispatchQueue.main.async { [weak self] in
  22. let controller = VideoExportController()
  23. // controller.export.voiceList = vc.recordList
  24. // controller.export.exporter?.assets = vc.avasset
  25. self?.navigationController?.pushViewController(controller, animated: true)
  26. }
  27. }
  28. vc.closeActionHandle = {
  29. self.backBtnClick()
  30. }
  31. vc.view.frame = view.frame
  32. addChildViewController(vc)
  33. view.addSubview(vc.view)
  34. }
  35. }