If you just want add shadow to the border, not to the contents. This code would be helpful.
struct ContentView: View {
@EnvironmentObject var home: HomeGlobal
var body: some View {
Text("jobyme88.com")
.padding()
.background(Rectangle()
.foregroundColor(.white)
.border(Color("lightGray"), width: 1)
.shadow(color: Color("lightGray"), radius: 2)
)
}
}