Blender 2.8 Viewport object visibility problem I have this annoying problem to which I can't seem to find a solution
Is there a way to enable in viewport to display rendered only objects, check out image below to see what I mean.

In 2.79 it was possible to link object visibility via drivers, so viewport would display in real time the objects that would be rendered (by linking visibility to render via driver). But in 2.8 visibility cannot be animated anymore!
Is there any hidden option that allows me to do this what I want? please help me out because I've been looking for hours
Thanks!
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.