Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swiftui background color

var body: some View {
    ZStack {
            Color.purple
                .ignoresSafeArea()
            
            // Your other content here
            // Other layers will respect the safe area edges
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swiftui #background #color
ADD COMMENT
Topic
Name
8+4 =