123456789101112131415161718192021222324252627282930313233343536373839 |
- 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()
- self?.navigationController?.pushViewController(controller, animated: true)
- }
- }
- vc.closeActionHandle = {
- self.backBtnClick()
- }
- vc.view.frame = view.frame
- addChildViewController(vc)
- view.addSubview(vc.view)
- }
- }
|