Added uncommitteed SheetPresenter
This commit is contained in:
parent
10fe82d45b
commit
929d407388
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue