diff --git a/Sources/SwiftUIOverlayContainer/Container/Container.swift b/Sources/SwiftUIOverlayContainer/Container/Container.swift index 2fbeb41..28b2c24 100644 --- a/Sources/SwiftUIOverlayContainer/Container/Container.swift +++ b/Sources/SwiftUIOverlayContainer/Container/Container.swift @@ -135,12 +135,9 @@ struct OverlayContainer: View { let insets = configuration.insets ZStack(alignment: alignment) { - Group { - if !queueHandler.mainQueue.isEmpty { - background - } - } - .zIndex(1.0) + background + .opacity(queueHandler.mainQueue.isEmpty ? 0 : 1) + .zIndex(1.0) GenericStack(displayType: configuration.displayType, alignment: alignment, spacing: configuration.spacing) { ForEach(queueHandler.mainQueue.alignment(