Added uncommitteed SheetPresenter

This commit is contained in:
dankito 2020-07-28 12:24:34 +02:00
parent 10fe82d45b
commit 929d407388
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import SwiftUI
struct SheetPresenter: View {
@Binding var presentingSheet: Bool
var content: ActionSheet
var body: some View {
Text("")
.actionSheet(isPresented: self.$presentingSheet, content: { self.content })
.onAppear {
DispatchQueue.main.async {
self.presentingSheet = true
}
}
}
}