title: How can I onto of a ring shape in SwiftUI
body: <p>I have a shape with an angle of 10 degrees I would like to add text on top of the shape. I have tried using <code>ZStack</code>, <code>Overlay</code> and the shape as background but it didn't work.
  Below are samples of code what I tried:</p>
  <pre><code>//Background
  Text(&quot;2&quot;)
      .background(Circle()
          .trim(from: 0.0, to: CGFloat(0.02702703))
          .stroke(Color.red, lineWidth: 35)
          .frame(width: 330, height: 330)
          .rotationEffect(Angle(degrees: -90)))
  
  //ZStack
  ZStack{
      Circle()
          .trim(from: 0.0, to: CGFloat(0.02702703))
          .stroke(Color.red, lineWidth: 35)
          .frame(width: 330, height: 330)
          .rotationEffect(Angle(degrees: -90))
      Text(&quot;2&quot;)
  }
  
  //Overlay
  Circle()
      .trim(from: 0.0, to: CGFloat(0.02702703))
      .stroke(Color.red, lineWidth: 35)
      .overlay(Text(&quot;2&quot;))
      .frame(width: 330, height: 330)
      .rotationEffect(Angle(degrees: -90))
  </code></pre>