From f9b301c3a11a0224a128c05df8debad63fa6de3e Mon Sep 17 00:00:00 2001 From: Daniel Jilg Date: Sun, 28 Jul 2019 11:40:57 +0200 Subject: [PATCH 1/2] Update Readme File to use correct CGRect Example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ae170e44..1a6213a57 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ let chart = Chart(frame: CGRect(x: 0, y: 0, width: 200, height: 100)) If you prefer to use Autolayout, set the frame to `0` and add the constraints later: ```swift -let chart = Chart(frame: CGRectZero) +let chart = Chart(frame: CGRect.zero) // add constraints now ``` From a33990b8ec41d4ddbf4e3b338695b887b2eaceea Mon Sep 17 00:00:00 2001 From: Daniel Jilg Date: Sun, 28 Jul 2019 11:43:41 +0200 Subject: [PATCH 2/2] Add import statement to example code --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1a6213a57..e2da368c2 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,12 @@ The library includes: **Example** ```swift +// At the top of the file +import SwiftChart + +/// ... + +// Create a new Chart in your code let chart = Chart() let series = ChartSeries([0, 6, 2, 8, 4, 7, 3, 10, 8]) series.color = ChartColors.greenColor()