Feat: Adds flagged equipment measurement view and style
This commit is contained in:
@@ -18,7 +18,7 @@ public struct FlaggedView<Label: View>: View {
|
||||
|
||||
public var body: some View {
|
||||
flaggedViewStyle.makeBody(
|
||||
configuration: .init(flagged: flagged, label: .init(label()))
|
||||
configuration: FlaggedViewStyleConfiguration(flagged: flagged, label: .init(label()))
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -27,6 +27,10 @@ extension FlaggedView where Label == Text {
|
||||
public init(_ title: LocalizedStringKey, flagged: Flagged) {
|
||||
self.init(flagged: flagged) { Text(title) }
|
||||
}
|
||||
|
||||
public init<S: StringProtocol>(_ title: S, flagged: Flagged) {
|
||||
self.init(flagged: flagged) { Text(title) }
|
||||
}
|
||||
}
|
||||
|
||||
extension FlaggedView where Label == EmptyView {
|
||||
|
||||
Reference in New Issue
Block a user