Darts can swim, but they generally don't choose to. Some have reported that theirs will jump in the water when startled and dive to the bottom, but I have never seen mine do that.
They will drown if they don't have a way to get out of the water, so there are several exit areas from the water area. They can sit on the plants in the water too.
Mostly they hide up top.