Mercurial > public > stock-charts
comparison 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 |
comparison
equal
deleted
inserted
replaced
108:f53d8b9ca92b | 109:957989b1068d |
---|---|
15 self.percentageOfWidth = percentageOfWidth | 15 self.percentageOfWidth = percentageOfWidth |
16 self.style = style | 16 self.style = style |
17 } | 17 } |
18 | 18 |
19 public var body: some View { | 19 public var body: some View { |
20 ZStack { | 20 GeometryReader { proxy in |
21 GeometryReader { proxy in | 21 ZStack { |
22 Group { | 22 Group { |
23 Capsule() | 23 Capsule() |
24 .foregroundColor(Color.gray) | 24 .foregroundColor(Color.gray) |
25 .opacity(0.2) | 25 .opacity(0.2) |
26 | 26 |