I'm trying to display a countdown in my widget, similar to the one shown in the WWDC video on WidgetKit. The problem is that as the time changes the font size is not readjusting and the text is getting cut off. Is there a workaround for this behavior?
Here is my code:
Here is my code:
Code Block swift VStack(alignment: .leading) { Text("\(entry.name) is in") .font(.subheadline) Text(entry.next.time, style: .relative) .font(.title2) .lineLimit(1) .frame(maxWidth: .infinity, alignment: .leading) } .minimumScaleFactor(0.5) .allowsTightening(true)