are you talking about views from the car (lots of great ones)
or a hikes with views ?
you can simply stand in the meadows of Yosemite Valley and be surrounded by amazing views if you don't mind the crowds.
if you've never been there, you should at least start in those meadows.
you can simply drive up and thru Tuolumne and be surrounded by amazing views.
the hikes up to the rim of the valley offer great views, lots of elevation gain.
If you have ONLY 2 days, and have never been to Yosemite, I would recommend biting the bullet and just be a tourist for 2 days. Enjoy the many views not far from the road. Take a couple day hikes. Get a permit and hike up to the top of Half Dome, a very crowded classic, but a CLASSIC.
Next time you can come with more time and go backcountry.