Blender 2.8 Viewport object visibility problem
Using a driver for visibility properties works in the current build of blender. There are some related changes that may be affect what you are trying to do.

In 2.7x pressing D adds a driver to the property under the cursor, in 2.80 that is now &#9096; CtrlD to add a driver.

In 2.7x the property hide will hide the object in the viewport, in 2.80 that is now called hide_viewport so scripts or drivers may need to be updated with this change.