I want to add an action for a custom Chromecast button.
I can use a default button (GCKUICastButton) with a default action.
let castButton = GCKUICastButton(frame: CGRect(x: 0, y: 0, width: 24, height: 24))
castButton.tintColor = UIColor.gray
navigationItem.rightBarButtonItem = UIBarButtonItem(customView: castButton)
But I need to create my own view with a list of devices that can connect with Chromecast.
How to get all available Chromecast devices?