From d03f21e477ef78714d4966a6c0d656ac3b24a800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihat=20G=C3=BCnd=C3=BCz?= Date: Sun, 17 Sep 2023 16:54:53 +0200 Subject: [PATCH] Fix build error in Xcode 15 (#45) --- Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift b/Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift index fcecfb76..8c445f59 100644 --- a/Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift +++ b/Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift @@ -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) }() ) )