I can't seem to figure out why it shows a black box in 3d viewport. I followed a quick liquid tutorial and I used a quick liquid function from the F3 menu, after changing the liquid from geometry to inflow it looked nice and so I went over to the 3d viewport and it's all just a black box. I tried putting lights and re-baking it but nothing worked.
if you follow a tutorial and you are a bloody beginner you SHOULD exactly follow the tutorial because every little step is important and cold ruin your whole simulation
as i could see in your blend file ...you didn't follow the tutorial at all...
to get "something" change these settings:
- change cache type to "replay"
- change viewport shading to material preview
then you will get:
About the blackness here. That's a bug in Blender 2.93 when Roughness value is set to a very low value (0.003...) and you have an Intel UHD Graphics unit or another affected GPU.