Box like shadow in swiftUI
I have added a VStack, I am adding 3 elements like Top , middle and bottom and adding shadow respectively. Problem is I am getting 1px gap between the elements even after adding spacing as 0.
Top element will have traling , leading and bottom shadow
Middle will have only leading and traling shadow
Bottom will have leading, trailing and bottom shadow.
I have tried adding offset its not improving