Forgot to commit linkForegroundColor() and alignVertically()

This commit is contained in:
dankito 2020-10-14 00:21:30 +02:00
parent 5acb2353c7
commit 360e75426f
1 changed files with 12 additions and 1 deletions

View File

@ -87,6 +87,11 @@ extension View {
.detailForegroundColor()
}
func linkForegroundColor() -> some View {
return self
.foregroundColor(Color.link)
}
func systemGroupedBackground() -> some View {
return self.background(Color.systemGroupedBackground)
}
@ -115,6 +120,10 @@ extension View {
return self.frame(maxWidth: .infinity, alignment: alignment)
}
func alignVertically(_ alignment: Alignment) -> some View {
return self.frame(maxHeight: .infinity, alignment: alignment)
}
func turnAnimationOff() -> some View {
return self.animation(nil)
@ -154,6 +163,8 @@ extension Color {
static let tertiaryLabel = Color(UIColor.tertiaryLabel)
static let quaternaryLabel = Color(UIColor.quaternaryLabel)
static let link = Color(UIColor.link)
static let systemBackground = Color(UIColor.systemBackground)
static let secondarySystemBackground = Color(UIColor.secondarySystemBackground)
static let tertiarySystemBackground = Color(UIColor.tertiarySystemBackground)