How to adapt font on SwiftUI?

Want to adapt text font when using SwiftUI so that it can fit when displaying dynamic text data of various length in a navigation bar title. can't seem to find the modifier. Code is .navigationBarTitle(Text(mydata[0]) sadly this modifier does not work : .lineLimit(2) any suggestion?