From 984301986ed1a875cfc3797fae7863e17fbf79b2 Mon Sep 17 00:00:00 2001 From: Yang Xu Date: Fri, 10 Feb 2023 11:57:47 +0800 Subject: [PATCH] fix stack mode transition error --- .../Container/CompositeContainerView.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sources/SwiftUIOverlayContainer/Container/CompositeContainerView.swift b/Sources/SwiftUIOverlayContainer/Container/CompositeContainerView.swift index 0418367..a8242a5 100644 --- a/Sources/SwiftUIOverlayContainer/Container/CompositeContainerView.swift +++ b/Sources/SwiftUIOverlayContainer/Container/CompositeContainerView.swift @@ -173,14 +173,12 @@ extension OverlayContainer { containerViewDisplayType: containerConfiguration.displayType ) // the current context of view is ZStack (GenericStack) - ZStack { backgroundOfIdentifiableView .zIndex(1.0) compositingView .padding(containerConfiguration.insets) // add insets for each view .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity, alignment: alignment) .zIndex(2.0) - } } } }