Answers for "blur background ios swift"

0

blur background swiftui

struct ContentView: View {

    var body: some View {
        ZStack {
            Image("BG")
                .resizable()
                .scaledToFill()
                .edgesIgnoringSafeArea(.all)
                .blur(radius: 20) // <- this is the important modifier. The rest is just for demo
                
            Text("Hello \nSwiftUI Blur Effect")
                .font(.largeTitle)
                .fontWeight(.black)
                .foregroundColor(.white)
        }
    }
}
Posted by: Guest on January-22-2021

Code answers related to "blur background ios swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language