Clear backgrounded presentation has non-clear background after animation
PhilipDukhov opened this issue · comments
In 0.1.27 this code works fine, but in 1.* it adds background after transition finishes. Without .animation
it works fine too.
@State var isPresented = false
var body: some View {
Button {
isPresented = true
} label: {
Text("show")
}
.presentation(
transition: .slide(
options: .init(
edge: .bottom,
prefersScaleEffect: true,
isInteractive: true,
options: .init(
shouldAutomaticallyDismissDestination: false,
modalPresentationCapturesStatusBarAppearance: true,
preferredPresentationBackgroundColor: .clear
)
)
),
isPresented: $isPresented
) {
Text("hey").foregroundStyle(.gray)
}
.animation(.default, value: isPresented)
}
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-11-29.at.20.44.25.mp4
Fixed in 1.0.2