swiftui custom color code example
Example 1: swiftui font color
Text("The best laid plans")
.foregroundColor(Color.red)
Example 2: swiftui background color
Group {
//Views inside the highest view in the hierarchy
}.background(Color.red.edgesIgnoringSafeArea(.all))