Mercurial > public > stock-charts
comparison Sources/StockCharts/CapsuleChart/CapsuleChartView.swift @ 110:b4901499ad40
Aligned Capsules
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 04 Jul 2021 17:04:17 +0100 |
parents | 957989b1068d |
children | 5057c45046c1 |
comparison
equal
deleted
inserted
replaced
109:957989b1068d | 110:b4901499ad40 |
---|---|
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 GeometryReader { proxy in | 20 GeometryReader { proxy in |
21 ZStack { | 21 ZStack(alignment: .leading) { |
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 |