uiview background color swift 5 code example
Example 1: give background color swiftui
Color.blue.edgesIgnoringSafeArea(.all)
Example 2: swiftui background color
Group {
//Views inside the highest view in the hierarchy
}.background(Color.red.edgesIgnoringSafeArea(.all))
Example 3: how to change background color swift
self.view.backgroundColor = .black / .blue / .purple / .clear /ect.