Why a Circle's borders lose smoothness after trimming?
struct WidgetsEntryView : View {
var entry: Provider.Entry
var body: some View {
VStack {
ZStack {
Circle()
.trim(from: 0.0, to: min(CGFloat(0.5), 1.0))
.stroke(Color.green, style: StrokeStyle(lineWidth: 10, lineCap: .round, lineJoin: .round))
.rotationEffect(Angle(degrees: 270))
}
Text("Subtitle")
.foregroundColor(.white)
}
.padding()
.background(Color.black)
}
}
And why the smoothness returns after removing the text, padding or trim itself?
Post
Replies
Boosts
Views
Activity
Error looking up Developer Teams
XHR request failure
Please sign out and try again.
After signed in, message appears again.
URL: https://icloud.developer.apple.com/dashboard/home/
Safari: Version 15.3 (17612.4.9.1.8)
MacOS: Monterey Version 12.2.1