SwiftUI - Background Color In View.
This tutorial is help to set background color of View in SwiftUI. first you create SwiftUI Project.
Set Background Color In SwiftUI View.
import SwiftUI
struct ContentView: View {
var body: some View {
Color.purple.edgesIgnoringSafeArea(.all)
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
SwiftUI - Background Color In View.
Reviewed by KIRIT MODI
on
20:36:00
Rating:
No comments: