-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add card. add transaction view. finish onboarding flow e2e
- Loading branch information
1 parent
5c05f95
commit 2aaa638
Showing
7 changed files
with
152 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// | ||
// OnboardingTransactionView.swift | ||
// eazy | ||
// | ||
// Created by Jann Driessen on 01.07.21. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct OnboardingTransactionView: View { | ||
@EnvironmentObject private var appStateManager: AppStateManager | ||
|
||
var body: some View { | ||
ZStack(alignment: .top) { | ||
LinearGradient( | ||
gradient: Gradient(colors: [EazyColor.highlight, EazyColor.highlight, EazyColor.title]), | ||
startPoint: .top, | ||
endPoint: .bottom | ||
) | ||
.edgesIgnoringSafeArea(.all) | ||
VStack { | ||
Text("💸") | ||
.font(.system(size: 44, design: .rounded)) | ||
.foregroundColor(.white) | ||
.multilineTextAlignment(.center) | ||
.padding(.top, 16) | ||
Text("We're sending a few transactions via the ethereum network to make your borrowed money available to you.\n\nThis might take a few minutes. We'll notify you when your money is ready.") | ||
.font(.system(size: 24, design: .rounded)) | ||
.foregroundColor(.white) | ||
.multilineTextAlignment(.leading) | ||
.padding() | ||
Spacer() | ||
EazyButton(title: "Got it!") { | ||
withAnimation { | ||
appStateManager.signedIn() | ||
} | ||
} | ||
.padding(.bottom, 8) | ||
.padding(.horizontal, 16) | ||
} | ||
.padding() | ||
} | ||
} | ||
} | ||
|
||
struct OnboardingTransactionView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
OnboardingTransactionView() | ||
} | ||
} |