Background Color. Xcode 16

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

Try using a ZStack?

ZStack {
          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
}// ZStack

Good idea but the ZStack will have to go inside the NavigationView.

struct OpeningView: View {
    let bgColor = Color(#colorLiteral(red: 1, green: 1, blue: 1, alpha: 1))

    var body: some View {

        NavigationView {
            ZStack {
                Color(bgColor)
                    .ignoresSafeArea()

                VStack(alignment: .center) {

                    Image("Logo")
                        .resizable()
                        .aspectRatio(contentMode: .fit)
                        .scaledToFit()
                    HStack {
                        NavigationLink(destination: RecordsVideoView()){
                            Button("Video") {

                            }
                            .padding(.horizontal, 15.0)
                        }
                        NavigationLink(destination: UploadVideoView()){
                            Button("Upload") {

                            }
                            .padding(.horizontal, 15.0)
                        }
                        NavigationLink(destination: SettingsView()){
                            Button("Settings") {

                            }
                            .padding(.horizontal, 15.0)
                        }
                    } // HStack
                } // VStack
            } // ZStack
        } // NavigationView
    } // body view
} // OpeningView struct
#Preview {
    OpeningView()
        .preferredColorScheme(.dark)
}

Ignore the fact that I have replaced your buttons with code that I can see since I don’t know what your 3 buttons are.

You probably should be using a NavigationStack unless you have some other reason that you are using a NavigationView. I guess it depends on how old the Apple sample code is.