Forgot to commit linkForegroundColor() and alignVertically()
This commit is contained in:
parent
5acb2353c7
commit
360e75426f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue