Here's some sample code that everyone can use in Xcode that reproduces the problem:
struct ContentView: View {
@Binding var isPresented: Bool
var body: some View {
ZStack {
Color.black
.ignoresSafeArea(edges: .all)
.opacity(isPresented ? 0.5 : 0)
.onTapGesture {
withAnimation(.linear(duration: 5)) {
isPresented = false
}
}
VStack {
Button("Show Custom Action Sheet") {
withAnimation {
isPresented = true
}
}
}
if isPresented {
VStack(spacing: 10) {
Spacer()
Text("Test")
Text("Test 1")
Text("Test 2")
}
.transition(.move(edge: .bottom))
.zIndex(1)
}
}
}
}
Post
Replies
Boosts
Views
Activity
Did you manage to solve this?