Browse Source

Support state changes

Lucas Brown 5 years ago
parent
commit
aad1ec94d0

+ 3 - 1
Sources/SwiftUIVisualEffects/Wrappers/BlurVisualEffectViewRepresentable.swift

@@ -10,5 +10,7 @@ struct _BlurVisualEffectViewRepresentable: UIViewRepresentable {
 		UIVisualEffectView(effect: UIBlurEffect(style: context.environment.blurEffectStyle))
 		UIVisualEffectView(effect: UIBlurEffect(style: context.environment.blurEffectStyle))
 	}
 	}
 	
 	
-	func updateUIView(_ uiView: UIVisualEffectView, context: Context) {}
+	func updateUIView(_ uiView: UIVisualEffectView, context: Context) {
+		uiView.effect = UIBlurEffect(style: context.environment.blurEffectStyle)
+	}
 }
 }