How could I make this title multiline?
I have tried setting the title text as multiline or even configuring it with allowsThigtening(flag: Bool) but none of
As Asperi has said, it is not possible to have a multiline navbar title by default. So, following Asperi suggestion, I have hidden the default title and I have set a custom Text():
VStack(alignment: .leading) {
Text(Constants.Distribution.text)
.font(.system(size: 34, weight: .heavy))
.foregroundColor(Color.white)
}
. . .
.navigationBarTitle(Text(""), displayMode: .inline)