diff Sources/StockCharts/CapsuleChart/CapsuleChartView.swift @ 109:957989b1068d

Fixes GeometryReader alignment
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sun, 04 Jul 2021 16:48:55 +0100
parents f53d8b9ca92b
children b4901499ad40
line wrap: on
line diff
--- a/Sources/StockCharts/CapsuleChart/CapsuleChartView.swift	Sun Jul 04 16:40:24 2021 +0100
+++ b/Sources/StockCharts/CapsuleChart/CapsuleChartView.swift	Sun Jul 04 16:48:55 2021 +0100
@@ -17,8 +17,8 @@
     }
     
     public var body: some View {
-        ZStack {
-            GeometryReader { proxy in
+        GeometryReader { proxy in
+            ZStack {
                 Group {
                     Capsule()
                         .foregroundColor(Color.gray)