Post

Replies

Boosts

Views

Activity

Circle() lose smoothness after .trim
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?
0
0
480
Jun ’21
CloudKit dashboard unavailable
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
Replies
7
Boosts
1
Views
2.1k
Activity
Jan ’23
Circle() lose smoothness after .trim
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?
Replies
0
Boosts
0
Views
480
Activity
Jun ’21