Skip to content

Commit

Permalink
Merge pull request #5 from niralishaha25/dev
Browse files Browse the repository at this point in the history
added Bundle for YPVideoCompressionVC
  • Loading branch information
niralishaha25 authored Nov 1, 2022
2 parents fcc030c + e2cb258 commit 4f69fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Pages/Gallery/YPLibraryVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ internal final class YPLibraryVC: UIViewController, YPPermissionCheckable {
}

DispatchQueue.main.async {
let storyBoard = UIStoryboard(name: "YPVideoCompressionVC", bundle: nil)
let storyBoard = UIStoryboard(name: "YPVideoCompressionVC", bundle: Bundle(for: YPVideoCompressionVC.self))
let ypVideoCompressionVC = storyBoard.instantiateViewController(withIdentifier: "YPVideoCompressionVC") as! YPVideoCompressionVC

let compressionOtions: [compressionOptions] = [compressionOptions.AVAssetExportPresetLowQuality, compressionOptions.AVAssetExportPreset640x480,compressionOptions.AVAssetExportPreset1920x1080, compressionOptions.AVAssetExportPresetPassthrough]
Expand Down

0 comments on commit 4f69fdb

Please sign in to comment.