ashchan/returns

Big Sur issues fix

Closed this issue · 3 comments

  • Portfolio toolbar configure button now showing up (folder.badge.gearshape not supported?) #49
  • Welcome view markdown text not rendered #50
  • Delete confirm dialog appears twice #51
  • [ ] Others?

Delete alert issue seems to be a common problem: https://forums.swift.org/t/actionsheet-and-modal-seems-have-bug-in-navigationview/29590/13

A workaround is to move alert or sheet outside of the navigation view. Not a great solution but worth trying.

First will try adding showingDeletePrompt = false to actions from the Alert to check if that could fix the issue.

Update: adding showingDeletePrompt = false to actions from the Alert doesn't solve the issue.

Will use the method described in this article: https://sarunw.com/posts/how-to-show-multiple-alerts-on-the-same-view-in-swiftui/

In short: use a single alert from the top level view.