Preheat oven to 170°C and grease a baking dish.
Drain the pineapple and cut into small pieces.
Mix flour and baking powder and set aside.
Beat butter and sugar.
Add eggs and beat well.
Add flower and mix until well combined.
Add coconut and mix until incorporated.
Fold in the pineapple.
Spread batter into prepared baking dish and bake until a toothpick inserted in the middle comes out clean (depending on the size of the dish, baking time may vary between 35-45 minutes).
For the topping toast a couple of tablespoons of coconut in a dry frying pan. Keep a close eye on it, as it can burn very quickly.
Then slice and serve!