Mercurial > public > stock-charts
diff Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift @ 103:766a1169564b
Add WatchOS compatability
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 27 Jun 2021 16:32:23 +0200 |
parents | 5135ff3343ae |
children | 0c0d38dca6d8 |
line wrap: on
line diff
--- a/Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift Tue Jun 22 16:41:53 2021 +0200 +++ b/Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift Sun Jun 27 16:32:23 2021 +0200 @@ -9,9 +9,16 @@ public struct IndicatorPoint: View { public var body: some View { + #if os(iOS) Circle() .frame(width: 20, height: 20) .foregroundColor(Color(.systemBlue)) + + #elseif os(watchOS) + Circle() + .frame(width: 20, height: 20) + .foregroundColor(Color(.blue)) + #endif } }