diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/fumiyatanaka.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/fumiyatanaka.xcuserdatad/UserInterfaceState.xcuserstate index d0e6b89a..766b66b1 100644 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/fumiyatanaka.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/fumiyatanaka.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Examples/DemoApp.xcodeproj/project.xcworkspace/xcuserdata/fumiyatanaka.xcuserdatad/UserInterfaceState.xcuserstate b/Examples/DemoApp.xcodeproj/project.xcworkspace/xcuserdata/fumiyatanaka.xcuserdatad/UserInterfaceState.xcuserstate index 06b5f162..4e44f32b 100644 Binary files a/Examples/DemoApp.xcodeproj/project.xcworkspace/xcuserdata/fumiyatanaka.xcuserdatad/UserInterfaceState.xcuserstate and b/Examples/DemoApp.xcodeproj/project.xcworkspace/xcuserdata/fumiyatanaka.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Examples/Shared/DemoApp.swift b/Examples/Shared/DemoApp.swift index 6df2cff1..d4ed81d5 100644 --- a/Examples/Shared/DemoApp.swift +++ b/Examples/Shared/DemoApp.swift @@ -17,8 +17,10 @@ struct DemoApp: App { var body: some Scene { WindowGroup { /// please change ``DemoApp/roulette`` and ``DemoApp/content`` - roulette.navigationTitle(title) - // content + NavigationView { + roulette.navigationTitle(title) + } +// content } } diff --git a/Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift b/Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift index 8c445f59..f8ed51d7 100644 --- a/Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift +++ b/Sources/SimpleRoulette/Sources/Pie/RouletteInternalView.swift @@ -60,8 +60,10 @@ public struct RouletteInternalView: View { } } ForEach(model.parts, id: \.self) { (part) -> ZStack in + let angle = ((part.endAngle + part.startAngle) / 2) + Angle(degrees: 90) ZStack { part.content.view + .rotationEffect(angle) .offset( CGSize( width: { () -> Double in