Skip to content

Commit 38e86fb

Browse files
committed
Updated Profile screens
1 parent edf731b commit 38e86fb

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

GoInfoGame/GoInfoGame/Login/BiometricToggleView.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ struct BiometricToggleView: View {
3030
)) {
3131
Text(biometricToggleText)
3232
}
33+
.tint(Asset.Colors.accentPink.swiftUIColor)
34+
}
35+
}
36+
37+
#Preview {
38+
BiometricToggleView(isEnabled: .constant(true)) { _ in
39+
3340
}
3441
}
3542

GoInfoGame/GoInfoGame/Login/PasswordAuthenticationPopupView.swift

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ struct PasswordAuthenticationPopupView: View {
2121
VStack(spacing: 16) {
2222
Text("Enable Biometric Login")
2323
.font(.headline)
24+
.foregroundStyle(Asset.Colors.huskyPurple.swiftUIColor)
2425

2526
SecureField("Enter your password", text: $viewModel.password)
2627
.textContentType(.password)
@@ -39,14 +40,15 @@ struct PasswordAuthenticationPopupView: View {
3940
}
4041
.padding()
4142
.frame(maxWidth: .infinity)
42-
.background(Color.blue)
43+
.background(Asset.Colors.huskyPurple.swiftUIColor)
4344
.foregroundColor(.white)
4445
.cornerRadius(8)
4546

4647
Button("Cancel") {
4748
onCancel()
4849
}
4950
.padding(.top, 4)
51+
.foregroundStyle(Asset.Colors.accentPink.swiftUIColor)
5052
}
5153
.padding()
5254
.background(Color.white)
@@ -82,13 +84,13 @@ struct PasswordAuthenticationPopupView: View {
8284

8385

8486

85-
//#Preview {
86-
// PasswordAuthenticationPopupView(
87-
// viewModel: <#PasswordAuthenticationViewModel#>, onSuccess: {
88-
// print("Biometric setup successful")
89-
// },
90-
// onCancel: {
91-
// print("Biometric setup cancelled")
92-
// }
93-
// )
94-
//}
87+
#Preview {
88+
PasswordAuthenticationPopupView(viewModel: PasswordAuthenticationViewModel()) {
89+
90+
} onCancel: {
91+
92+
} onFailure: { _ in
93+
94+
}
95+
96+
}

GoInfoGame/GoInfoGame/UserProfile/View/UserProfileView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ struct UserProfileView: View {
2525
Text("My Profile")
2626
.font(.custom("Lato-Bold", size: 25))
2727
.padding(.bottom, 50)
28+
.foregroundStyle(Asset.Colors.huskyPurple.swiftUIColor)
2829
HStack(alignment: .center, spacing: 16) {
2930
profileImage
3031

@@ -88,7 +89,7 @@ struct UserProfileView: View {
8889
}
8990

9091
private var profileImage: some View {
91-
Image(systemName: "person.circle.fill")
92+
Image(systemName: "person.fill")
9293
.resizable()
9394
.frame(width: 50, height: 50)
9495
.clipShape(Circle())

0 commit comments

Comments
 (0)