For last couple of months we are facing a weird issue in our small type widget .Here the text is getting truncated sometimes which is inside a VStack .When we tried to replicate the same issue in a demo app with the same text its working fine over there .
here is my code for Small Widget
We have already added .minimumScaleFactor(0.5) but still sometimes the text is getting truncated.And it is not happening all the time .
here is my code for Small Widget
Code Block struct SmallNewsView: View { let newsData: [NewsItem]? var body: some View { let sequence = 0 ..< (newsData?.count ?? 0) let shuffledSequence = sequence.shuffled() let index = shuffledSequence[0] ZStack { Rectangle().fill(Color("BackgroundColor")) VStack(alignment: .leading, spacing: 6.0) { LogoView() Text(newsData?[index].title?.htmlSupportedContent ?? "") .layoutPriority(1) .font(.custom("SFProDisplay-Bold", size: 13)) .foregroundColor(Color("DescColor")) .minimumScaleFactor(0.5) Text(newsData?[index].pubDate?.getPublishedDuration(dateFormat: AppConstants.timeStampFormatter.widgetType) ?? "") .font(.custom("SFProDisplay-Semibold", size: 11)) .lineLimit(1) .foregroundColor(Color("TimeStampColor")) }.padding(15.0) } } }
We have already added .minimumScaleFactor(0.5) but still sometimes the text is getting truncated.And it is not happening all the time .