Added extensions detailForegroundColor() and styleAsDetail()
This commit is contained in:
parent
0ece2b1bf5
commit
293ab59eb6
|
@ -32,6 +32,17 @@ extension View {
|
|||
})
|
||||
}
|
||||
|
||||
func detailForegroundColor() -> some View {
|
||||
return self
|
||||
.foregroundColor(Color.gray)
|
||||
}
|
||||
|
||||
func styleAsDetail() -> some View {
|
||||
return self
|
||||
.font(.callout)
|
||||
.detailForegroundColor()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ struct AddAccountDialog: View {
|
|||
}
|
||||
else {
|
||||
Text("Select your bank ...")
|
||||
.foregroundColor(.gray)
|
||||
.detailForegroundColor()
|
||||
.frame(height: 50)
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ struct AddAccountDialog: View {
|
|||
.navigationBarHidden(false)
|
||||
}
|
||||
|
||||
|
||||
|
||||
func isRequiredDataEntered() -> Bool {
|
||||
return bank != nil
|
||||
&& customerId.isEmpty == false
|
||||
|
|
|
@ -26,7 +26,7 @@ struct BankInfoListItem: View {
|
|||
|
||||
Spacer()
|
||||
}
|
||||
.foregroundColor(.gray)
|
||||
.styleAsDetail()
|
||||
.padding(.top, 6.0)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue