In a food processor, combine the walnuts, 4 cups of dates, shredded coconut, rosemary, and sea salt. Process until everything is well mixed.
Press this mixture evenly into the base and sides of a springform pan, then place it in the freezer for about 30 minutes to firm up.
To make the caramel sauce, blend together the remaining 2 cups of dates, lemon juice, honey, coconut milk, cinnamon, and vanilla until smooth.
Slice the apples very thinly using a mandoline or a sharp knife, aiming for around 8 cups of apple slices. Transfer them to a medium-sized bowl.
Pour the caramel mixture over the apple slices and gently toss to coat. Let the apples soak in the fridge for at least 30 minutes or overnight.
Using a slotted spoon, transfer the apple slices into the pie crust, letting any extra liquid drain. Pack the apples tightly into the crust, pressing down lightly. Serve and enjoy!