I have a Video recording app that I modified from an Apple sample code. But now I need to change the color of a view and it only seems to want to change the color for a rectangle area and not the entire screen. How do you change the background color? Here is the code as it presently exists:
import SwiftUI
struct OpeningView: View {
let bgColor = Color(#colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
var body: some View {
//Color(bgColor). // turns the rectangle above the logo white
NavigationView{
VStack(alignment: .center) {
Image("Logo")
.resizable()
.aspectRatio(contentMode: /*@START_MENU_TOKEN@*/.fit/*@END_MENU_TOKEN@*/)
.scaledToFit()
HStack {
NavigationLink(destination: RecordsVideoView()){
FilmVideoBtn()
.padding(.horizontal, 15.0)
}
NavigationLink(destination: UploadVideoView()){
FilmUploadBtn()
.padding(.horizontal, 15.0)
}
NavigationLink(destination: SettingsView()){
SettingsBtn()
.padding(.horizontal, 15.0)
}
} // NavigationView
} // HStack
} // VStack
} // View
} // body view