Open ohwhen opened 1 week ago
Could you please share an example that reproduces? And how you are testing: Xcode version, simulator version.
I could not reproduce on Xcode 18.1, iOS 18.1/17.0
struct Issue67: View {
var body: some View {
ContentView()
}
struct ContentView: View {
@State var isPresented = false
var body: some View {
VStack {
Button("Present") {
withAnimation {
isPresented = true
}
}
}
.presentation(
transition: .sheet(
detents: [.constant("checkoutView", height: 420)]
),
isPresented: $isPresented
) {
Text("Test Sheet")
}
}
}
}
Have a weird issue where on
iOS 17.*
the presentation modifier is glitching (animating twice, opening full screen and then dismisses) when using a custom detent, works fine with.medium
detent.https://github.com/user-attachments/assets/f419a6d4-5193-490c-9190-ffc11c4bb9b6