Cancel Order design challenge
When you tap on CANCEL ORDER in CompleteOrderView
, you will see the following:
Before you start working on this view, we will create a blurred view together first. We are going to create our first UIViewRepresentable
. Open VibrancyBackground
and add the following:
struct VibrancyBackground: UIViewRepresentable { var style: UIBlurEffect.Style = .light func makeUIView(context: UIViewRepresentableContext<VibrancyBackground>) -> UIVisualEffectView { return UIVisualEffectView(effect: UIBlurEffect(style: style)) } func updateUIView(_ uiView: UIVisualEffectView, context: Context) { ...