Answers for "swiftui text auto size"

0

make text autoresize swiftui

struct ContentView : View {
var body: some View {
    ZStack {
        Circle().strokeBorder(Color.red, lineWidth: 30)
        Text("Text")
            .scaledToFill()
            .minimumScaleFactor(0.5)
            .lineLimit(1)
    }
}
Posted by: Guest on October-04-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language