IntroduceController.swift 1019 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 Foundation
  9. import BFUIKit
  10. import BFRecordScreenKit
  11. import Photos
  12. class IntroduceController : BFBaseViewController {
  13. var asset:PHAsset?
  14. override func viewDidLoad() {
  15. super.viewDidLoad()
  16. let vc = BFRecordScreenController()
  17. vc.asset = asset
  18. vc.nextActionHandle = {
  19. DispatchQueue.main.async { [weak self] in
  20. let controller = VideoExportController()
  21. controller.export.voiceList = vc.recordList
  22. controller.export.asset = vc.avasset
  23. self?.navigationController?.pushViewController(controller, animated: true)
  24. }
  25. }
  26. vc.closeActionHandle = {
  27. self.backBtnClick()
  28. }
  29. vc.view.frame = self.view.frame
  30. addChildViewController(vc)
  31. view.addSubview(vc.view)
  32. }
  33. }