From 9572ae02062af62bbc0b5084869cf8d23fba2261 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 28 Jul 2020 11:15:47 +0200 Subject: [PATCH] Removed accidentally committed code --- .../BankingiOSApp/ContentView.swift | 59 ------------------- 1 file changed, 59 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ContentView.swift b/ui/BankingiOSApp/BankingiOSApp/ContentView.swift index 1d64e4b6..ac04efec 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ContentView.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ContentView.swift @@ -18,29 +18,6 @@ struct ContentView: View { @Inject private var presenter: BankingPresenterSwift - - // TODO: remove again - private let enterTanState: EnterTanState - - - init() { - let customer = Customer(bankCode: "", customerId: "", password: "", finTsServerAddress: "") - let selectedTanProcedure = TanProcedure(displayName: "chipTAN optisch", type: .chiptanflickercode, bankInternalProcedureCode: "chipTAN optisch") - customer.supportedTanProcedures = [ - TanProcedure(displayName: "App TAN", type: .apptan, bankInternalProcedureCode: "App TAN"), - selectedTanProcedure, - TanProcedure(displayName: "SMS TAN", type: .smstan, bankInternalProcedureCode: "SMS TAN") - ] - customer.selectedTanProcedure = selectedTanProcedure - - customer.tanMedia = [ - TanMedium(displayName: "EC-Karte mit Nummer 12345678", status: .available), - TanMedium(displayName: "Handy mit Nummer 0170 / 12345678", status: .available) - ] - - self.enterTanState = EnterTanState(customer, TanChallenge(messageToShowToUser: "Gib die TAN ein du faules Stueck!\nAber jetzt manchen wir mal eine richtig, richtig lange Nachricht daraus.\nMal schauen, ob mir so viel Quatsch ueberhaupt einfaellt (aber anscheinend scheine ich sehr kreativ zu sein).", tanProcedure: selectedTanProcedure)) { result in } - } - var body: some View { // NavigationView { @@ -65,32 +42,6 @@ struct ContentView: View { } .tag(0) - // actionSheet(isPresented: $showTransferMoneyOptionsActionSheet) { - // ActionSheet( - // title: Text("Action"), - // message: Text("Available actions"), - // buttons: [ - // .default(Text("Show transfer money dialog")) { self.selectedTransferMoneyOption = 1 }, - // .destructive(Text("Delete")) - // ] - // ) - // } - - // TransferMoneyDialog() - // .tabItem { - // NavigationLink(destination: TransferMoneyDialog(), tag: 1, selection: $selectedTransferMoneyOption) { - // EmptyView() - // } - // VStack { - // Image("second") - // Text("Second") - // } - // .onTapGesture { - // NSLog("Tapped on second item") // TODO: remove again - // self.showTransferMoneyOptionsActionSheet = true - // } - // } - // NavigationView { VStack { NavigationLink(destination: TransferMoneyDialog()) { Text("Show transfer money dialog") @@ -121,16 +72,6 @@ struct ContentView: View { } .tag(1) - EnterTanDialog(self.enterTanState) - .tabItem { - VStack { - Text("EnterTanDialog") - } - } - .tag(3) - .navigationBarHidden(false) - .navigationBarTitle("Enter TAN") - } .navigationBarHidden(false) .navigationBarTitle(navigationBarTitle)