xxxxxxxxxx
// You can add padding to the HStack like shown below. But if anyone else has a suggestion on how you can blead the shadow onto the other views without using padding,
// Code Block Swift
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 20) {
ForEach(0 ..< 12) { index in
Rectangle()
.foregroundColor(.white)
.frame(width: 100, height: 100, alignment: .center)
.shadow(radius: 20)
}
}
.padding(35)
}
.padding(-20)