I have an arrangement like this for a Horizontal Progress bar in SwiftUI
ZStack {
// UI Content
HStack{
Text("")
.frame (width:300)
}
}
The problem is text will move outside the ZStack when it is at the extreme right or left.
This is what I am trying to achieve (2nd image)
Any solution to achieve this?