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