Preheat the oven to 350°F (180°C). Grease an 8- or 9-inch round cake pan or springform pan.
In a medium bowl, whisk together the all-purpose flour, baking powder, and salt. Set aside.
In a large bowl, beat the softened butter and sugar for 2–3 minutes until creamy and lighter in color.
Add the eggs one at a time, mixing well after each addition.
Add the vanilla extract and mix briefly.
Add the dry ingredients and mix on low just until combined.
Peel and dice the apples into approximately ½-inch (1.5 cm) cubes.
Fold the diced apples gently into the cake batter.
Transfer the batter to the prepared cake pan and smooth the top.
Bake for 45–55 minutes, or until lightly golden and a toothpick inserted into the cake comes out clean or with a few moist crumbs.
Let the cake cool in the pan for 15–20 minutes.
Remove from the pan and transfer to a serving plate or cooling rack.
Dust with powdered sugar.
Slice and serve warm or at room temperature, with vanilla ice cream or whipped cream if desired.