Skip to content

Commit

Permalink
improved some code
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Apr 3, 2022
1 parent 4d6f65a commit 980694c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Sources/SwiftUIOverlayContainer/Container/Container.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 980694c

Please sign in to comment.