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.
03 - In a large bowl, whisk the eggs, oil, sugar, buttermilk (or yogurt), and vanilla extract until smooth.
04 - Stir the dry ingredients into the wet mixture just until combined. Do not overmix.
05 - Gently fold in the drained pineapple and shredded coconut until evenly distributed.
06 - Pour batter into the prepared loaf pan and smooth the top.
07 - Bake for 50-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.