I'm still pretty new to swift UI, almost finished a project however no matter what I try I cannot get the background to take up the whole screen space, with the code below it still has a white border surrounding the image on all sides, I've tried ignoresSafeArea and scaletofill and everything else chat gpt could come up with. I'm not sure if its an issue with how I downloaded the image (as a png) because I feel like this should be fairly simple. Thanks in advance for any help. :)
This is the code for the view:
struct BirdView: View {
var body: some View {
VStack {
Text("Opening Page")
.padding()
.offset(x: 0, y: -130)
.multilineTextAlignment(.center)
}
.background(Image("purplegradient"))
.ignoresSafeArea()
}
}
And this is how the view is getting called:
struct ContentView: View {
var body: some View {
VStack {
BirdView()
}
}
}