set backgroundcolor swift ui code example
Example 1: swift change background color
self.view.backgroundColor = UIColor.red
Example 2: give background color swiftui
Color.blue.edgesIgnoringSafeArea(.all)
self.view.backgroundColor = UIColor.red
Color.blue.edgesIgnoringSafeArea(.all)