Evenly distribute wrapped text between lines in SwiftUI

153 Views Asked by At

How can I tell SwiftUI that when text wraps, I'd like all the lines to be as close to equal length as possible?

For example, I don't want this:

The quick brown fox jumps over the
lazy dog

Even if there is enough horizontal space to fit everything except "lazy dog" on the first line, I want this instead (or whatever gives the most equal line lengths for the font in use):

The quick brown fox
jumps over the lazy dog
0

There are 0 best solutions below