SwiftUI change sheet background

Viewed 1278

How can I change a modals sheet background? For instance, if I have:

  Button(action: showAdditionalOptions) {
      Image(systemName: "ellipsis")
        .font(.system(size: 20))
        .foregroundColor(Color.white)
    }
    .onTapGesture { showAdditionalOptions() }
    .fullScreenCover(isPresented: $isShowingAdditionalOptions) {
      AdditionalActions()
        .background(Color.black.opacity(0.2))
    }

The effect I am trying to get to is a blur effect that when a sheet is presented, its background is blurred and partly transparent. However I can't change the sheet's background. I can only modify a sheet's content background. Is there a way to apply a background to the sheet itself?

0 Answers
Related