To make the dough, place the bread flour in a large bowl or the bowl of a stand mixer fitted with a dough hook, add the yeast to one side and the salt and sugar to the other, stir to combine.
Add the lukewarm milk and mix to form a shaggy dough. Knead with the mixer or turn out onto an un-floured surface and knead for 5-10 minutes until smooth and elastic. The dough will be sticky at first but resist the temptation to add extra flour, it will become smooth after a minute or two of kneading.
Add the softened vegan butter. Continue to knead until the butter is fully incorporated and the dough is smooth and elastic.
Once the butter is fully incorporated the dough should look smooth and silky and it should pull away from the work surface or sides of the bowl cleanly. It should still be soft and slightly sticky however.
Place the dough in a lightly oiled bowl, cover and set aside to rise in a warm spot until doubled in size, about 1-2 hours. Line a 2 lb loaf tin with greaseproof paper.
Punch down the risen dough and give it a brief knead to knock out any air bubbles. Roll the dough out on a lightly floured surface into an approx 30 x 45cm (12 x 18 in) rectangle. Use your hands to spread the softened butter evenly over the dough.
Peel, core and dice the apples and mix them together with the brown sugar, cinnamon and cornflour if using.
Spread the apple filling plus any juices evenly over the buttered dough.
Slice the dough widthways into 5 even strips, then lengthwise into 4 strips, to make 20 squares of dough. Stack the squares into 5 piles, each with 4 squares.
Stack the dough piles upright in the lined tin, squashing them together to fit them all in. Gather up any apple filling that fell off and scatter it over the top. Loosely cover the tin, and leave to rise in a warm place for about 45-60 minutes until puffy.
Meanwhile, preheat the oven to 190°C/170℃ fan/375°F/gas mark 5.
Bake for about 50 minutes until the temperature in the centre registers at least 90°C/194°F on a probe thermometer, or a skewer inserted into the centre comes out clean.
Allow to cool for 15 minutes in the tin on a wire rack.
Meanwhile, make the glaze; sift the icing sugar into a small bowl and stir in the vanilla and milk. It should be a pourable consistency.
Turn the bread out onto a serving dish and pour over the glaze. Serve warm.
