BreakthroughEffect
The way a presentation shows through content in front of it.
Declaration
struct BreakthroughEffectOverview
In a volumetric scene, 3D models and other app content can end up between the person using your app and a sheet or popover. Breakthrough keeps the presentation legible anyway. Pass a value of this type to presentationBreakthroughEffect(_:) to choose how strongly it comes through:
Button("Show Details") {
isShowingDetails = true
}
.popover(isPresented: $isShowingDetails) {
DetailsView()
.presentationBreakthroughEffect(.prominent)
}Most system presentations already break through, so use this only when the default is too strong or too faint against your content. Only popovers can turn the effect off with none; passing that value for a sheet has no effect.