In a medium saucepan, combine Swerve, cocoa powder, salt, and xanthan gum. Whisk well.
Cook over medium-low heat, whisking frequently. Don't let mixture come to a rolling boil. It should cook gently and slowly. Heat and whisk until pudding is thick enough to coat the back of a spoon.
Remove from heat. Stir in vanilla extract.
Pour into bowl or other container. Cover tightly with plastic wrap. Refrigerate overnight or until firm.
For the Whipped Cream (Optional)
Mix all ingredients in a chilled metal mixing bowl. Use a hand mixer or whisk, and mix until stiff peaks form, approximately 5 to 8 minutes.
Recipe Notes
Confectioners Swerve: If you don't have Swerve Confectioners (or another brand of powdered erythritol) on hand, you can make your own using Swerve Granular! Simply pulse the granulated erythritol in a food processor until it reaches the consistency of powdered erythritol.
Storage: To avoid a film, keep the pudding covered tightly with plastic wrap at all times, except when you're serving it. The plastic wrap should touch the surface of the chocolate pudding.