feat(payment): add custom logo for PIX payment method
This commit is contained in:
@@ -382,9 +382,18 @@ struct CheckoutView: View {
|
||||
.fill(AppColors.backgroundLight)
|
||||
.frame(width: 54, height: 54)
|
||||
.overlay(
|
||||
Image(systemName: method.iconName)
|
||||
.font(.system(size: 20, weight: .semibold))
|
||||
.foregroundStyle(method == .pix ? Color.green : AppColors.textPrimary)
|
||||
Group {
|
||||
if method == .pix {
|
||||
Image("icon_pix")
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 24, height: 24)
|
||||
} else {
|
||||
Image(systemName: method.iconName)
|
||||
.font(.system(size: 20, weight: .semibold))
|
||||
.foregroundStyle(AppColors.textPrimary)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
VStack(alignment: .leading, spacing: 3) {
|
||||
|
||||
Reference in New Issue
Block a user