Check out example codes for "swiftui background color". It will help you in understanding the concepts better.

Code Example 1

Group {
	//Views inside the highest view in the hierarchy
}.background(Color.red.edgesIgnoringSafeArea(.all))

Code Example 2

Color.blue.edgesIgnoringSafeArea(.all)

Learn ReactJs, React Native from akashmittal.com