A white swimsuit on a white bedsheet in a dim room photographs as a grey blob with straps. The camera is not the problem. Light, background, and what the garment is resting on decide almost everything, and all three are controllable in an ordinary room with a window.

Use window light, and turn the flash off
A window with indirect daylight is the best light source most homes have. Place the garment so the window is to one side, which gives the fabric soft shading and shows its texture instead of flattening it. Direct sun creates blown highlights on any sheen, so if the light is harsh, hang a thin white curtain or a sheet between the window and the garment.
Turn the flash off every time. On swim fabric, flash produces a hotspot that hides the stitch detail you worked for, and on skin with a model it flattens the shape. If the room is too dark, move closer to the window rather than reaching for the flash.
Choose a background that separates from the garment
The background only needs to do one job: make the edge of the suit visible. A pale wall for a dark suit, a wood floor or a darker cloth for a pale one. Wrinkled bedding and cluttered tables read as carelessness, even when the sewing is excellent. A large sheet of paper, a clean wall, or a plain wood surface is enough.
- Steam or press the garment before shooting; wrinkles in the photo look like wrinkles in the fit.
- Remove loose threads with a lint roller or a piece of tape.
- Keep the background free of hangers, tape, and your own shadow.
Show the shape, then show the details
Flat lay photographs lie about swimwear. Stretch the garment over a dress form, a hanger padded with tissue, or a person, so the neckline and leg curve read as they will when worn. Photograph straight on at chest height for the main image, then move in for the details that prove the work: the topstitching along a leg opening, the inside seam finish, the binding at the neckline. Those close shots are what other sewists look at first.
If you photograph on a person, ask them to move naturally rather than hold a pose. A suit photographed mid-motion shows how it behaves, which is more useful than a stiff front view.
Edit lightly and consistently
Straighten the horizon, crop so the garment fills most of the frame, and correct the white balance so the fabric color is accurate. Resist heavy filters, because a buyer or a classmate comparing your photo to the real garment will notice. A consistent set of three or four images — front, back, and two details — is more useful than twenty variations.
Window light, a plain background, a garment that holds its shape, and close-ups of the seams. Shoot that way and the photograph finally looks like the piece you actually made.