MillmanY / MMPlayerView

Custom AVPlayerLayer on view and transition player with good effect like youtube and facebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

what about UITabbarController ?

ghimireprashant opened this issue · comments

does mmplayerview work on tabbar?

thanks

yes its work

please provide me the instruction.
i have tried

     if let vc = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "DetailViewController") as? DetailViewController {
            vc.data = DemoSource.shared.demoData[indexPath.row]
        self.tabBarController?.present(vc, animated: true, completion: nil)

for presenting.
and sinking view
(self.presentationController as? MMPlayerPassViewPresentatinController)?.shrinkView()
i want to display floating player in top of tabbar like youtube.
but i am not able make it work.
thanks

hello @MillmanY
(self.presentationController as? MMPlayerPassViewPresentatinController) is nil.
so i am not able to shrinkView
thanks

Just added

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        self.mmPlayerTransition.present.pass { (config) in
            config.duration = 0.3
        }
    }

and not nil anymore.
but still not able to shrinkView
:(

previously issued are fixed
hello @MillmanY
my recent issue is when i try to dismiss shrinkView by swipe i am not able to present again the detailviewcontroller. and when i dismiss shrinkView from other viewController shrinkView goes on top

    self.dismiss(animated: true, completion: {
      self.presentingViewController?.dismiss(animated: true, completion: nil)
    })

check the first image shrinkview is overlapping tabbar how to pass origin for that shrinkview.
thanks
Simulator Screen Shot - iPhone Xʀ - 2019-10-18 at 22 43 52
Simulator Screen Shot - iPhone Xʀ - 2019-10-18 at 19 56 30