Skip to content

Commit

Permalink
Fix build error in Xcode 15 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Sep 17, 2023
1 parent 80a21a3 commit d03f21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ public struct RouletteInternalView: View {
CGSize(
width: { () -> Double in
let mean = (part.startAngle + part.endAngle) / 2
return radius * 1/2 * cos(mean.radians)
return radius * 0.5 * cos(mean.radians)
}(),
height: { () -> Double in
let mean = (part.startAngle + part.endAngle) / 2
return radius * 1/2 * sin(mean.radians)
return radius * 0.5 * sin(mean.radians)
}()
)
)
Expand Down

0 comments on commit d03f21e

Please sign in to comment.