0

Everytime when I dismiss my action sheet, it goes back to the very beginning. Dismiss button below:

Button{
  showingSheet.toggle()
}label: {
  HStack {
    Text("At the movies")
    Spacer()
  }
  .padding()
  .background(Color(colorScheme == .dark ?   
  .tertiarySystemBackground: .white))
}
.sheet(isPresented: $showingSheet) {
  StatusSelectorView()
}
}
jnpdx
  • 45,847
  • 6
  • 64
  • 94
  • What do you mean by 'it goes back to the very beginning'. Please show all relevant code. From your provided code it is not clear where the problem is. https://stackoverflow.com/help/minimal-reproducible-example – burnsi Feb 01 '22 at 12:32
  • I think he means that it's de-initialized. – xTwisteDx Feb 01 '22 at 13:47
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Feb 10 '22 at 00:47

0 Answers0