I\'d like to create a text view inside a circle view. The font size should be automatically set to fit the size of the circle. How can this be done in SwiftUI? I tried scaledToF
One possible "hack" is to use a big font size and a small scale factor so it will shrink itself:
ZStack { Circle().strokeBorder(Color.red, lineWidth: 30) Text("Text") .padding(40) .font(.system(size: 500)) .minimumScaleFactor(0.01) } }