Home > AI > IOS > SwiftUI >

edgesIgnoringSafeArea(_:)

Example :

struct TestView: View {
    var body: some View {
        Text("Hello World")
            .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
            .background(Color.red)
            .edgesIgnoringSafeArea(.all)
    }
}

Leave a Reply