how to change background color in swiftui code example
Example 1: give background color swiftui
Color.blue.edgesIgnoringSafeArea(.all)
Example 2: changing color of background swift
self.view.backgroundColor = UIColor.blue // or .blue for shorthand
Example 3: swiftui background color
Group {
//Views inside the highest view in the hierarchy
}.background(Color.red.edgesIgnoringSafeArea(.all))