01 - Preheat oven to 350°F. Grease and flour a 9x5-inch loaf pan or line with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, and salt until well combined.
03 - In a large bowl, whisk the eggs, oil, sugar, buttermilk (or yogurt), and vanilla extract until smooth and fully incorporated.
04 - Stir the dry ingredients into the wet mixture just until combined. Do not overmix to prevent tough texture.
05 - Gently fold in the drained pineapple and shredded coconut until evenly distributed throughout the batter.
06 - Pour batter into the prepared loaf pan and smooth the top with a spatula for even baking.
07 - Bake for 50 to 55 minutes, or until a toothpick inserted into the center comes out clean.
08 - Cool in the pan for 10 minutes, then transfer to a wire rack to cool completely before slicing.