- Preheat your oven to 350°F (175°C) and grease a 9-inch round cake pan.
- In a large bowl, whisk together the gluten-free flour, sugar, cocoa powder, baking powder, baking soda, and salt.
- Add the melted butter, eggs, vanilla extract, and buttermilk to the dry ingredients and mix until well combined.
- Fold in the shredded coconut and chopped pecans.
- In another bowl, beat the cream cheese until smooth, then add the powdered sugar, egg, and vanilla extract, mixing until creamy.
- Pour half of the chocolate cake batter into the prepared pan, then dollop the cheesecake mixture on top. Pour the remaining chocolate batter over the cheesecake layer.
- Use a knife to swirl the cheesecake into the chocolate batter gently.
- Bake for 30-35 minutes or until a toothpick inserted in the center comes out clean.
- Allow the cake to cool in the pan for 10 minutes before transferring it to a wire rack to cool completely.
Discover my list of kitchen tools I always use.