Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to hide mini controller container swift #137

Open
coucoseth opened this issue May 8, 2024 · 0 comments
Open

how to hide mini controller container swift #137

coucoseth opened this issue May 8, 2024 · 0 comments

Comments

@coucoseth
Copy link

coucoseth commented May 8, 2024

I added mini controllers in my app following the google cast docs

func applicationDidFinishLaunching(_ application: UIApplication) {
  ...

  // Wrap main view in the GCKUICastContainerViewController and display the mini controller.
  let appStoryboard = UIStoryboard(name: "Main", bundle: nil)
  let navigationController = appStoryboard.instantiateViewController(withIdentifier: "MainNavigation")
  let castContainerVC =
          GCKCastContext.sharedInstance().createCastContainerController(for: navigationController)
  castContainerVC.miniMediaControlsItemEnabled = true
  window = UIWindow(frame: UIScreen.main.bounds)
  window!.rootViewController = castContainerVC
  window!.makeKeyAndVisible()

  ...
}

The mini controls successfully appear at the bottom in my app however my issue is that when im not casting,the space/container that the minicontrols are supposed to appear in is left blank(white space), how can i not show this space/container at all when not casting and display the controls only when casting

@coucoseth coucoseth changed the title how to hide mini controller swift how to hide mini controller container swift May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant