feat: Adds text labeled content and style.

This commit is contained in:
2024-06-11 16:31:59 -04:00
parent c6c45ffa7e
commit da8a8638c7
8 changed files with 144 additions and 77 deletions

View File

@@ -0,0 +1,17 @@
import SwiftUI
public struct GridRowTextLabeledContentStyle: LabeledContentStyle {
public func makeBody(configuration: Configuration) -> some View {
GridRow {
configuration.label
configuration.content
}
}
}
extension LabeledContentStyle where Self == GridRowTextLabeledContentStyle {
public static var gridRow: Self {
GridRowTextLabeledContentStyle()
}
}