From 929d40738849d87b7ba281f915a1b8c262753601 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 28 Jul 2020 12:24:34 +0200 Subject: [PATCH] Added uncommitteed SheetPresenter --- .../BankingiOSApp/ui/SheetPresenter.swift | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ui/BankingiOSApp/BankingiOSApp/ui/SheetPresenter.swift diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/SheetPresenter.swift b/ui/BankingiOSApp/BankingiOSApp/ui/SheetPresenter.swift new file mode 100644 index 00000000..2f2cf3fe --- /dev/null +++ b/ui/BankingiOSApp/BankingiOSApp/ui/SheetPresenter.swift @@ -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 + } + } + } +}