title: Can Text fit perfectly into a Shape?
body: <p>I'm trying to work our if it's possible to display text in a <code>Shape</code> so that the text it not rectangular but the same as the shape it's self.</p>
  <p>I have tried</p>
  <pre><code>    Text(loremIpsum)
          .font(Font.system(size: 14))
          .clipShape(Circle())
  </code></pre>
  <p>which the result was that I'm not seeing new lines when text reaches the edge of the shape.</p>
  <p><a href="https://i.stack.imgur.com/2wgbs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2wgbs.png" alt="circular text which doesn't have all the text visbile" /></a></p>
  <p>I then tried to use the circle first and add text to that but that resulted in text appearing outside the circle.</p>
  <pre><code>    Circle()
          .stroke(Color.black, lineWidth: 2)
          .padding(6)
          .overlay(
              Text(loremIpsum)
              .font(Font.system(size: 14))
          )
  </code></pre>
  <p><a href="https://i.stack.imgur.com/pEs7g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pEs7g.png" alt="circle with text appearing from the side" /></a></p>
  <p>I'm wanting to achieve Text that fits perfectly into whatever <code>Shape</code> I use. Is this possible?</p>
  <p>The question suggested <a href="https://stackoverflow.com/questions/67029483/how-to-have-text-fit-within-boundaries-of-circular-shape-image-swiftui">here</a> does not answer my question sadly.  hat just fits text into a <code>Shape</code> but still retains a rectangular frame. I'm trying to make text exactly match the shape I am placing it in.</p>