Open utterances-bot opened 4 years ago
Do you know how to adjust the kernings between each pair of adjacent characters? The circular text looks not so natural.
You can check the character then apply smaller kerning. In the code above you have an "element" which is character, compare it, if it is "i" apply smaller kerning. But the best way to do it is find a font that already support it.
func kerningFor(char: c) -> CGFloat {
if c == 'i' {
return 2.0
}
return 5
}
Create Circular Text Using SwiftUI - Dwarves Memo
With Swift UI, build a custom controls is easier than before. We are going to build a circular text and I will show you how easily to do it.
https://dwarves.foundation/memo/create-circular-text-using-swiftui-uqag5nifzj/