Skip to content

Commit

Permalink
Ensures the default LabeledContent is trailing aligned for its conten…
Browse files Browse the repository at this point in the history
…t since its generally displayed along the trailing edge
  • Loading branch information
shaps80 committed Jul 15, 2022
1 parent aa603ab commit d2ca1d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ extension Backport where Wrapped == Any {
public func makeBody(configuration: Configuration) -> some View {
HStack(alignment: .firstTextBaseline) {
configuration.label
Spacer(minLength: 0)
Spacer()
configuration.content
.multilineTextAlignment(.trailing)
}
}
}
Expand Down

0 comments on commit d2ca1d4

Please sign in to comment.