Trim by Swiftui allowed me to make a circle filled with 2 different colors. The problem i'm facing now is i want to trim my circles from horizontally but the trim only work vertically. I tried using hstack to help this process but it did not work.
Is there any solution to fix this problem?

ZStack {
//HStack get removed from here
Circle()
.trim(from: 0.5, to: 1)
.fill(.blue)
Circle()
.trim(from: 0, to: 0.5)
.fill(.red)
Circle()
.strokeBorder(lineWidth: 24)
}

