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