Build Information
Failed to build Chart, reference main (565b7d), with Swift 6.3 for Android on 15 Apr 2026 12:18:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/manux81/Chart.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/manux81/Chart
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 565b7d6 Add check import uikit
Cloned https://github.com/manux81/Chart.git
Revision (git rev-parse @):
565b7d63e7066eaa05f4ce590483eb7f59f3ed5e
SUCCESS checkout https://github.com/manux81/Chart.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/manux81/Chart.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Chart
/host/spi-builder-workspace/Sources/Chart/Chart.swift:38:35: error: cannot find type 'UIView' in scope
36 |
37 |
38 | @IBDesignable public class Chart: UIView {
| `- error: cannot find type 'UIView' in scope
39 | enum ChartAxisType {
40 | case atNumeric
/host/spi-builder-workspace/Sources/Chart/Chart.swift:52:17: error: cannot find type 'UIColor' in scope
50 | var tickOriginX: Double = 0.0
51 | var tickOriginY: Double = 0.0
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
| `- error: cannot find type 'UIColor' in scope
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:52:27: error: cannot find 'UIColor' in scope
50 | var tickOriginX: Double = 0.0
51 | var tickOriginY: Double = 0.0
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
| `- error: cannot find 'UIColor' in scope
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:958:41: error: cannot find type 'CGColor' in scope
956 | }
957 |
958 | func CGColorFromRGB(rgbValue: Int32) -> CGColor {
| `- error: cannot find type 'CGColor' in scope
959 | let red : CGFloat = ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0
960 | let green : CGFloat = ((CGFloat)((rgbValue & 0x00FF00) >> 8)) / 255.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:53:17: error: cannot find type 'UIColor' in scope
51 | var tickOriginY: Double = 0.0
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
| `- error: cannot find type 'UIColor' in scope
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
55 | var disabledColor: UIColor = .gray
/host/spi-builder-workspace/Sources/Chart/Chart.swift:53:27: error: cannot find 'UIColor' in scope
51 | var tickOriginY: Double = 0.0
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
| `- error: cannot find 'UIColor' in scope
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
55 | var disabledColor: UIColor = .gray
/host/spi-builder-workspace/Sources/Chart/Chart.swift:54:20: error: cannot find type 'UIColor' in scope
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
| `- error: cannot find type 'UIColor' in scope
55 | var disabledColor: UIColor = .gray
56 | var textColor: UIColor = .black
/host/spi-builder-workspace/Sources/Chart/Chart.swift:54:30: error: cannot find 'UIColor' in scope
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
| `- error: cannot find 'UIColor' in scope
55 | var disabledColor: UIColor = .gray
56 | var textColor: UIColor = .black
/host/spi-builder-workspace/Sources/Chart/Chart.swift:55:21: error: cannot find type 'UIColor' in scope
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
55 | var disabledColor: UIColor = .gray
| `- error: cannot find type 'UIColor' in scope
56 | var textColor: UIColor = .black
57 | var axisColor: UIColor = .black
/host/spi-builder-workspace/Sources/Chart/Chart.swift:56:17: error: cannot find type 'UIColor' in scope
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
55 | var disabledColor: UIColor = .gray
56 | var textColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
57 | var axisColor: UIColor = .black
58 | var tickerFormat: String = "HH:mm"
/host/spi-builder-workspace/Sources/Chart/Chart.swift:57:17: error: cannot find type 'UIColor' in scope
55 | var disabledColor: UIColor = .gray
56 | var textColor: UIColor = .black
57 | var axisColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
58 | var tickerFormat: String = "HH:mm"
59 | var balloonFormat: String = "dd MMM yyyy"
/host/spi-builder-workspace/Sources/Chart/Chart.swift:67:24: error: cannot find type 'CGRect' in scope
65 | var delegate: ChartDelegate? = nil
66 |
67 | private var baserect: CGRect? = nil
| `- error: cannot find type 'CGRect' in scope
68 | private var alreadySorted: Bool = true
69 | private var rangeX: ClosedRange<Double> = 0.0 ... 100.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:75:22: error: cannot find type 'CGFloat' in scope
73 | private var status: Array<Bool> = []
74 |
75 | private var panTop: CGFloat = 5.0
| `- error: cannot find type 'CGFloat' in scope
76 | private var panBottom: CGFloat = 15.0
77 | private var panLeft: CGFloat = 15.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:76:25: error: cannot find type 'CGFloat' in scope
74 |
75 | private var panTop: CGFloat = 5.0
76 | private var panBottom: CGFloat = 15.0
| `- error: cannot find type 'CGFloat' in scope
77 | private var panLeft: CGFloat = 15.0
78 | private var panRight: CGFloat = 40.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:77:23: error: cannot find type 'CGFloat' in scope
75 | private var panTop: CGFloat = 5.0
76 | private var panBottom: CGFloat = 15.0
77 | private var panLeft: CGFloat = 15.0
| `- error: cannot find type 'CGFloat' in scope
78 | private var panRight: CGFloat = 40.0
79 | private var tickerFont: UIFont?
/host/spi-builder-workspace/Sources/Chart/Chart.swift:78:24: error: cannot find type 'CGFloat' in scope
76 | private var panBottom: CGFloat = 15.0
77 | private var panLeft: CGFloat = 15.0
78 | private var panRight: CGFloat = 40.0
| `- error: cannot find type 'CGFloat' in scope
79 | private var tickerFont: UIFont?
80 | private var tickerAttributes: [NSAttributedString.Key: Any]?
/host/spi-builder-workspace/Sources/Chart/Chart.swift:79:26: error: cannot find type 'UIFont' in scope
77 | private var panLeft: CGFloat = 15.0
78 | private var panRight: CGFloat = 40.0
79 | private var tickerFont: UIFont?
| `- error: cannot find type 'UIFont' in scope
80 | private var tickerAttributes: [NSAttributedString.Key: Any]?
81 | private var selected: Int = -1
/host/spi-builder-workspace/Sources/Chart/Chart.swift:80:33: error: cannot find type 'NSAttributedString' in scope
78 | private var panRight: CGFloat = 40.0
79 | private var tickerFont: UIFont?
80 | private var tickerAttributes: [NSAttributedString.Key: Any]?
| `- error: cannot find type 'NSAttributedString' in scope
81 | private var selected: Int = -1
82 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:85:28: error: cannot find type 'CGFloat' in scope
83 | private let unselectedTextBGColor = CGColorFromRGB(rgbValue: 0x888A85)
84 | private let selectedTextBGColor = CGColorFromRGB(rgbValue: 0xFFFFFF)
85 | private let dashLengths: [CGFloat] = [7.0, 3.0]
| `- error: cannot find type 'CGFloat' in scope
86 | private let screenScale = 1.0 / UIScreen.main.scale
87 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:86:34: error: cannot find 'UIScreen' in scope
84 | private let selectedTextBGColor = CGColorFromRGB(rgbValue: 0xFFFFFF)
85 | private let dashLengths: [CGFloat] = [7.0, 3.0]
86 | private let screenScale = 1.0 / UIScreen.main.scale
| `- error: cannot find 'UIScreen' in scope
87 |
88 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:102:30: error: cannot find type 'UISwipeGestureRecognizer' in scope
100 | private var dateStrategy: ChartDateStrategy = .dsNone
101 |
102 | private var recognizerLeft: UISwipeGestureRecognizer?
| `- error: cannot find type 'UISwipeGestureRecognizer' in scope
103 | private var recognizerRight: UISwipeGestureRecognizer?
104 | private var recognizerLongPress: UILongPressGestureRecognizer?
/host/spi-builder-workspace/Sources/Chart/Chart.swift:103:31: error: cannot find type 'UISwipeGestureRecognizer' in scope
101 |
102 | private var recognizerLeft: UISwipeGestureRecognizer?
103 | private var recognizerRight: UISwipeGestureRecognizer?
| `- error: cannot find type 'UISwipeGestureRecognizer' in scope
104 | private var recognizerLongPress: UILongPressGestureRecognizer?
105 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:104:35: error: cannot find type 'UILongPressGestureRecognizer' in scope
102 | private var recognizerLeft: UISwipeGestureRecognizer?
103 | private var recognizerRight: UISwipeGestureRecognizer?
104 | private var recognizerLongPress: UILongPressGestureRecognizer?
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
105 |
106 | private var balloonPoint: CGPoint? = nil
/host/spi-builder-workspace/Sources/Chart/Chart.swift:106:28: error: cannot find type 'CGPoint' in scope
104 | private var recognizerLongPress: UILongPressGestureRecognizer?
105 |
106 | private var balloonPoint: CGPoint? = nil
| `- error: cannot find type 'CGPoint' in scope
107 | private var balloonValue: String? = nil
108 | private var balloonDate: String? = nil
/host/spi-builder-workspace/Sources/Chart/Chart.swift:109:29: error: cannot find type 'Timer' in scope
107 | private var balloonValue: String? = nil
108 | private var balloonDate: String? = nil
109 | private var balloonTimer : Timer? = nil
| `- error: cannot find type 'Timer' in scope
110 | private var context: CGContext? = nil
111 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:110:23: error: cannot find type 'CGContext' in scope
108 | private var balloonDate: String? = nil
109 | private var balloonTimer : Timer? = nil
110 | private var context: CGContext? = nil
| `- error: cannot find type 'CGContext' in scope
111 |
112 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:114:23: error: cannot find type 'CGRect' in scope
112 |
113 |
114 | override init(frame: CGRect) {
| `- error: cannot find type 'CGRect' in scope
115 | super.init(frame: frame)
116 | commonInit()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:119:24: error: cannot find type 'NSCoder' in scope
117 | }
118 |
119 | required init?(coder: NSCoder) {
| `- error: cannot find type 'NSCoder' in scope
120 | super.init(coder: coder)
121 | commonInit()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:150:23: error: method does not override any method from its superclass
148 | }
149 |
150 | public override func layoutSubviews() {
| `- error: method does not override any method from its superclass
151 | super.layoutSubviews()
152 | self.backgroundColor = UIColor.clear
/host/spi-builder-workspace/Sources/Chart/Chart.swift:155:36: error: cannot find type 'CGRect' in scope
153 | }
154 |
155 | public override func draw(_ rect: CGRect) {
| `- error: cannot find type 'CGRect' in scope
156 | let clipArea = CGRect(x: rect.minX + panLeft - 6, y: rect.minY + panTop - 6, width: rect.maxX - panRight - panLeft + 6, height: rect.height - panBottom - panTop + 6)
157 | baserect = rect
/host/spi-builder-workspace/Sources/Chart/Chart.swift:179:38: error: cannot find type 'UISwipeGestureRecognizer' in scope
177 | }
178 |
179 | @objc func swipe(gestureRecognizer: UISwipeGestureRecognizer!) {
| `- error: cannot find type 'UISwipeGestureRecognizer' in scope
180 | self.unselect()
181 | if gestureRecognizer.direction == .left {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:179:3: error: Objective-C interoperability is disabled
177 | }
178 |
179 | @objc func swipe(gestureRecognizer: UISwipeGestureRecognizer!) {
| `- error: Objective-C interoperability is disabled
180 | self.unselect()
181 | if gestureRecognizer.direction == .left {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:188:42: error: cannot find type 'UILongPressGestureRecognizer' in scope
186 | }
187 |
188 | @objc func longPress(gestureRecognizer: UILongPressGestureRecognizer!) {
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
189 | let location = gestureRecognizer.location(in: self)
190 | let coeX = (baserect!.maxX - panRight - panLeft) / (tickStepX * Double(ticksX.count))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:188:3: error: Objective-C interoperability is disabled
186 | }
187 |
188 | @objc func longPress(gestureRecognizer: UILongPressGestureRecognizer!) {
| `- error: Objective-C interoperability is disabled
189 | let location = gestureRecognizer.location(in: self)
190 | let coeX = (baserect!.maxX - panRight - panLeft) / (tickStepX * Double(ticksX.count))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:246:3: error: Objective-C interoperability is disabled
244 | }
245 |
246 | @objc func unselect() {
| `- error: Objective-C interoperability is disabled
247 | selected = -1
248 | balloonPoint = nil
/host/spi-builder-workspace/Sources/Chart/Chart.swift:551:34: error: cannot find type 'CGPoint' in scope
549 |
550 |
551 | func drawBalloon(atPoint point: CGPoint, value: String, date: String) {
| `- error: cannot find type 'CGPoint' in scope
552 | let paragraphStyle = NSMutableParagraphStyle()
553 | paragraphStyle.alignment = .left
/host/spi-builder-workspace/Sources/Chart/Chart.swift:617:35: error: cannot find type 'Date' in scope
615 | /// - parameter timeZone: Time zone to use for conversion date.
616 | /// - returns: A string matched with the format.
617 | static func stringFromDate(date: Date, format: String, timeZone: TimeZone? = .current) -> String {
| `- error: cannot find type 'Date' in scope
618 | let df = DateFormatter()
619 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:617:67: error: cannot find type 'TimeZone' in scope
615 | /// - parameter timeZone: Time zone to use for conversion date.
616 | /// - returns: A string matched with the format.
617 | static func stringFromDate(date: Date, format: String, timeZone: TimeZone? = .current) -> String {
| `- error: cannot find type 'TimeZone' in scope
618 | let df = DateFormatter()
619 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:631:34: error: cannot find type 'Date' in scope
629 | /// - parameter date: The data to be converted.
630 | /// - returns: A double
631 | static func dateTimeToKey(date: Date) -> Double {
| `- error: cannot find type 'Date' in scope
632 | return date.timeIntervalSince1970
633 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:644:44: error: cannot find type 'Date' in scope
642 | /// - parameter key: The key to be converted.
643 | /// - returns: A Date
644 | static func keyToDateTime(key: Double) -> Date {
| `- error: cannot find type 'Date' in scope
645 | return Date(timeIntervalSince1970: TimeInterval(key))
646 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:825:104: error: cannot find type 'TimeZone' in scope
823 | }
824 |
825 | private func createTickVector(tickStep: Double, origin: Double, range: ClosedRange<Double>, timeZone: TimeZone) -> [Double] {
| `- error: cannot find type 'TimeZone' in scope
826 | var result: [Double] = createTickVector(tickStep: tickStep, origin: origin, range: range)
827 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:933:18: error: cannot find type 'UIGestureRecognizerDelegate' in scope
931 | }
932 |
933 | extension Chart: UIGestureRecognizerDelegate {
| `- error: cannot find type 'UIGestureRecognizerDelegate' in scope
934 |
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:935:53: error: cannot find type 'UIGestureRecognizer' in scope
933 | extension Chart: UIGestureRecognizerDelegate {
934 |
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
936 | if gestureRecognizer is UIPanGestureRecognizer && otherGestureRecognizer is UISwipeGestureRecognizer {
937 | let swipeGestureRecognizer = otherGestureRecognizer as! UISwipeGestureRecognizer
/host/spi-builder-workspace/Sources/Chart/Chart.swift:935:132: error: cannot find type 'UIGestureRecognizer' in scope
933 | extension Chart: UIGestureRecognizerDelegate {
934 |
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
936 | if gestureRecognizer is UIPanGestureRecognizer && otherGestureRecognizer is UISwipeGestureRecognizer {
937 | let swipeGestureRecognizer = otherGestureRecognizer as! UISwipeGestureRecognizer
/host/spi-builder-workspace/Sources/Chart/Chart.swift:952:11: error: cannot find type 'Date' in scope
950 | }
951 |
952 | extension Date {
| `- error: cannot find type 'Date' in scope
953 | func addMonth(months: Int) -> Date? {
954 | return Calendar.current.date(byAdding: .month, value: months, to: self)
[4/4] Compiling Chart Chart.swift
/host/spi-builder-workspace/Sources/Chart/Chart.swift:38:35: error: cannot find type 'UIView' in scope
36 |
37 |
38 | @IBDesignable public class Chart: UIView {
| `- error: cannot find type 'UIView' in scope
39 | enum ChartAxisType {
40 | case atNumeric
/host/spi-builder-workspace/Sources/Chart/Chart.swift:52:17: error: cannot find type 'UIColor' in scope
50 | var tickOriginX: Double = 0.0
51 | var tickOriginY: Double = 0.0
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
| `- error: cannot find type 'UIColor' in scope
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:52:27: error: cannot find 'UIColor' in scope
50 | var tickOriginX: Double = 0.0
51 | var tickOriginY: Double = 0.0
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
| `- error: cannot find 'UIColor' in scope
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:958:41: error: cannot find type 'CGColor' in scope
956 | }
957 |
958 | func CGColorFromRGB(rgbValue: Int32) -> CGColor {
| `- error: cannot find type 'CGColor' in scope
959 | let red : CGFloat = ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0
960 | let green : CGFloat = ((CGFloat)((rgbValue & 0x00FF00) >> 8)) / 255.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:53:17: error: cannot find type 'UIColor' in scope
51 | var tickOriginY: Double = 0.0
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
| `- error: cannot find type 'UIColor' in scope
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
55 | var disabledColor: UIColor = .gray
/host/spi-builder-workspace/Sources/Chart/Chart.swift:53:27: error: cannot find 'UIColor' in scope
51 | var tickOriginY: Double = 0.0
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
| `- error: cannot find 'UIColor' in scope
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
55 | var disabledColor: UIColor = .gray
/host/spi-builder-workspace/Sources/Chart/Chart.swift:54:20: error: cannot find type 'UIColor' in scope
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
| `- error: cannot find type 'UIColor' in scope
55 | var disabledColor: UIColor = .gray
56 | var textColor: UIColor = .black
/host/spi-builder-workspace/Sources/Chart/Chart.swift:54:30: error: cannot find 'UIColor' in scope
52 | var gridColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xE0E0E0))
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
| `- error: cannot find 'UIColor' in scope
55 | var disabledColor: UIColor = .gray
56 | var textColor: UIColor = .black
/host/spi-builder-workspace/Sources/Chart/Chart.swift:55:21: error: cannot find type 'UIColor' in scope
53 | var lineColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
55 | var disabledColor: UIColor = .gray
| `- error: cannot find type 'UIColor' in scope
56 | var textColor: UIColor = .black
57 | var axisColor: UIColor = .black
/host/spi-builder-workspace/Sources/Chart/Chart.swift:56:17: error: cannot find type 'UIColor' in scope
54 | var scatterColor: UIColor = UIColor(cgColor: CGColorFromRGB(rgbValue: 0xFF0202))
55 | var disabledColor: UIColor = .gray
56 | var textColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
57 | var axisColor: UIColor = .black
58 | var tickerFormat: String = "HH:mm"
/host/spi-builder-workspace/Sources/Chart/Chart.swift:57:17: error: cannot find type 'UIColor' in scope
55 | var disabledColor: UIColor = .gray
56 | var textColor: UIColor = .black
57 | var axisColor: UIColor = .black
| `- error: cannot find type 'UIColor' in scope
58 | var tickerFormat: String = "HH:mm"
59 | var balloonFormat: String = "dd MMM yyyy"
/host/spi-builder-workspace/Sources/Chart/Chart.swift:67:24: error: cannot find type 'CGRect' in scope
65 | var delegate: ChartDelegate? = nil
66 |
67 | private var baserect: CGRect? = nil
| `- error: cannot find type 'CGRect' in scope
68 | private var alreadySorted: Bool = true
69 | private var rangeX: ClosedRange<Double> = 0.0 ... 100.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:75:22: error: cannot find type 'CGFloat' in scope
73 | private var status: Array<Bool> = []
74 |
75 | private var panTop: CGFloat = 5.0
| `- error: cannot find type 'CGFloat' in scope
76 | private var panBottom: CGFloat = 15.0
77 | private var panLeft: CGFloat = 15.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:76:25: error: cannot find type 'CGFloat' in scope
74 |
75 | private var panTop: CGFloat = 5.0
76 | private var panBottom: CGFloat = 15.0
| `- error: cannot find type 'CGFloat' in scope
77 | private var panLeft: CGFloat = 15.0
78 | private var panRight: CGFloat = 40.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:77:23: error: cannot find type 'CGFloat' in scope
75 | private var panTop: CGFloat = 5.0
76 | private var panBottom: CGFloat = 15.0
77 | private var panLeft: CGFloat = 15.0
| `- error: cannot find type 'CGFloat' in scope
78 | private var panRight: CGFloat = 40.0
79 | private var tickerFont: UIFont?
/host/spi-builder-workspace/Sources/Chart/Chart.swift:78:24: error: cannot find type 'CGFloat' in scope
76 | private var panBottom: CGFloat = 15.0
77 | private var panLeft: CGFloat = 15.0
78 | private var panRight: CGFloat = 40.0
| `- error: cannot find type 'CGFloat' in scope
79 | private var tickerFont: UIFont?
80 | private var tickerAttributes: [NSAttributedString.Key: Any]?
/host/spi-builder-workspace/Sources/Chart/Chart.swift:79:26: error: cannot find type 'UIFont' in scope
77 | private var panLeft: CGFloat = 15.0
78 | private var panRight: CGFloat = 40.0
79 | private var tickerFont: UIFont?
| `- error: cannot find type 'UIFont' in scope
80 | private var tickerAttributes: [NSAttributedString.Key: Any]?
81 | private var selected: Int = -1
/host/spi-builder-workspace/Sources/Chart/Chart.swift:80:33: error: cannot find type 'NSAttributedString' in scope
78 | private var panRight: CGFloat = 40.0
79 | private var tickerFont: UIFont?
80 | private var tickerAttributes: [NSAttributedString.Key: Any]?
| `- error: cannot find type 'NSAttributedString' in scope
81 | private var selected: Int = -1
82 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:85:28: error: cannot find type 'CGFloat' in scope
83 | private let unselectedTextBGColor = CGColorFromRGB(rgbValue: 0x888A85)
84 | private let selectedTextBGColor = CGColorFromRGB(rgbValue: 0xFFFFFF)
85 | private let dashLengths: [CGFloat] = [7.0, 3.0]
| `- error: cannot find type 'CGFloat' in scope
86 | private let screenScale = 1.0 / UIScreen.main.scale
87 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:86:34: error: cannot find 'UIScreen' in scope
84 | private let selectedTextBGColor = CGColorFromRGB(rgbValue: 0xFFFFFF)
85 | private let dashLengths: [CGFloat] = [7.0, 3.0]
86 | private let screenScale = 1.0 / UIScreen.main.scale
| `- error: cannot find 'UIScreen' in scope
87 |
88 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:102:30: error: cannot find type 'UISwipeGestureRecognizer' in scope
100 | private var dateStrategy: ChartDateStrategy = .dsNone
101 |
102 | private var recognizerLeft: UISwipeGestureRecognizer?
| `- error: cannot find type 'UISwipeGestureRecognizer' in scope
103 | private var recognizerRight: UISwipeGestureRecognizer?
104 | private var recognizerLongPress: UILongPressGestureRecognizer?
/host/spi-builder-workspace/Sources/Chart/Chart.swift:103:31: error: cannot find type 'UISwipeGestureRecognizer' in scope
101 |
102 | private var recognizerLeft: UISwipeGestureRecognizer?
103 | private var recognizerRight: UISwipeGestureRecognizer?
| `- error: cannot find type 'UISwipeGestureRecognizer' in scope
104 | private var recognizerLongPress: UILongPressGestureRecognizer?
105 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:104:35: error: cannot find type 'UILongPressGestureRecognizer' in scope
102 | private var recognizerLeft: UISwipeGestureRecognizer?
103 | private var recognizerRight: UISwipeGestureRecognizer?
104 | private var recognizerLongPress: UILongPressGestureRecognizer?
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
105 |
106 | private var balloonPoint: CGPoint? = nil
/host/spi-builder-workspace/Sources/Chart/Chart.swift:106:28: error: cannot find type 'CGPoint' in scope
104 | private var recognizerLongPress: UILongPressGestureRecognizer?
105 |
106 | private var balloonPoint: CGPoint? = nil
| `- error: cannot find type 'CGPoint' in scope
107 | private var balloonValue: String? = nil
108 | private var balloonDate: String? = nil
/host/spi-builder-workspace/Sources/Chart/Chart.swift:109:29: error: cannot find type 'Timer' in scope
107 | private var balloonValue: String? = nil
108 | private var balloonDate: String? = nil
109 | private var balloonTimer : Timer? = nil
| `- error: cannot find type 'Timer' in scope
110 | private var context: CGContext? = nil
111 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:110:23: error: cannot find type 'CGContext' in scope
108 | private var balloonDate: String? = nil
109 | private var balloonTimer : Timer? = nil
110 | private var context: CGContext? = nil
| `- error: cannot find type 'CGContext' in scope
111 |
112 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:114:23: error: cannot find type 'CGRect' in scope
112 |
113 |
114 | override init(frame: CGRect) {
| `- error: cannot find type 'CGRect' in scope
115 | super.init(frame: frame)
116 | commonInit()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:119:24: error: cannot find type 'NSCoder' in scope
117 | }
118 |
119 | required init?(coder: NSCoder) {
| `- error: cannot find type 'NSCoder' in scope
120 | super.init(coder: coder)
121 | commonInit()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:150:23: error: method does not override any method from its superclass
148 | }
149 |
150 | public override func layoutSubviews() {
| `- error: method does not override any method from its superclass
151 | super.layoutSubviews()
152 | self.backgroundColor = UIColor.clear
/host/spi-builder-workspace/Sources/Chart/Chart.swift:155:36: error: cannot find type 'CGRect' in scope
153 | }
154 |
155 | public override func draw(_ rect: CGRect) {
| `- error: cannot find type 'CGRect' in scope
156 | let clipArea = CGRect(x: rect.minX + panLeft - 6, y: rect.minY + panTop - 6, width: rect.maxX - panRight - panLeft + 6, height: rect.height - panBottom - panTop + 6)
157 | baserect = rect
/host/spi-builder-workspace/Sources/Chart/Chart.swift:179:38: error: cannot find type 'UISwipeGestureRecognizer' in scope
177 | }
178 |
179 | @objc func swipe(gestureRecognizer: UISwipeGestureRecognizer!) {
| `- error: cannot find type 'UISwipeGestureRecognizer' in scope
180 | self.unselect()
181 | if gestureRecognizer.direction == .left {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:179:3: error: Objective-C interoperability is disabled
177 | }
178 |
179 | @objc func swipe(gestureRecognizer: UISwipeGestureRecognizer!) {
| `- error: Objective-C interoperability is disabled
180 | self.unselect()
181 | if gestureRecognizer.direction == .left {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:188:42: error: cannot find type 'UILongPressGestureRecognizer' in scope
186 | }
187 |
188 | @objc func longPress(gestureRecognizer: UILongPressGestureRecognizer!) {
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
189 | let location = gestureRecognizer.location(in: self)
190 | let coeX = (baserect!.maxX - panRight - panLeft) / (tickStepX * Double(ticksX.count))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:188:3: error: Objective-C interoperability is disabled
186 | }
187 |
188 | @objc func longPress(gestureRecognizer: UILongPressGestureRecognizer!) {
| `- error: Objective-C interoperability is disabled
189 | let location = gestureRecognizer.location(in: self)
190 | let coeX = (baserect!.maxX - panRight - panLeft) / (tickStepX * Double(ticksX.count))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:246:3: error: Objective-C interoperability is disabled
244 | }
245 |
246 | @objc func unselect() {
| `- error: Objective-C interoperability is disabled
247 | selected = -1
248 | balloonPoint = nil
/host/spi-builder-workspace/Sources/Chart/Chart.swift:551:34: error: cannot find type 'CGPoint' in scope
549 |
550 |
551 | func drawBalloon(atPoint point: CGPoint, value: String, date: String) {
| `- error: cannot find type 'CGPoint' in scope
552 | let paragraphStyle = NSMutableParagraphStyle()
553 | paragraphStyle.alignment = .left
/host/spi-builder-workspace/Sources/Chart/Chart.swift:617:35: error: cannot find type 'Date' in scope
615 | /// - parameter timeZone: Time zone to use for conversion date.
616 | /// - returns: A string matched with the format.
617 | static func stringFromDate(date: Date, format: String, timeZone: TimeZone? = .current) -> String {
| `- error: cannot find type 'Date' in scope
618 | let df = DateFormatter()
619 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:617:67: error: cannot find type 'TimeZone' in scope
615 | /// - parameter timeZone: Time zone to use for conversion date.
616 | /// - returns: A string matched with the format.
617 | static func stringFromDate(date: Date, format: String, timeZone: TimeZone? = .current) -> String {
| `- error: cannot find type 'TimeZone' in scope
618 | let df = DateFormatter()
619 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:631:34: error: cannot find type 'Date' in scope
629 | /// - parameter date: The data to be converted.
630 | /// - returns: A double
631 | static func dateTimeToKey(date: Date) -> Double {
| `- error: cannot find type 'Date' in scope
632 | return date.timeIntervalSince1970
633 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:644:44: error: cannot find type 'Date' in scope
642 | /// - parameter key: The key to be converted.
643 | /// - returns: A Date
644 | static func keyToDateTime(key: Double) -> Date {
| `- error: cannot find type 'Date' in scope
645 | return Date(timeIntervalSince1970: TimeInterval(key))
646 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:825:104: error: cannot find type 'TimeZone' in scope
823 | }
824 |
825 | private func createTickVector(tickStep: Double, origin: Double, range: ClosedRange<Double>, timeZone: TimeZone) -> [Double] {
| `- error: cannot find type 'TimeZone' in scope
826 | var result: [Double] = createTickVector(tickStep: tickStep, origin: origin, range: range)
827 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:933:18: error: cannot find type 'UIGestureRecognizerDelegate' in scope
931 | }
932 |
933 | extension Chart: UIGestureRecognizerDelegate {
| `- error: cannot find type 'UIGestureRecognizerDelegate' in scope
934 |
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:935:53: error: cannot find type 'UIGestureRecognizer' in scope
933 | extension Chart: UIGestureRecognizerDelegate {
934 |
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
936 | if gestureRecognizer is UIPanGestureRecognizer && otherGestureRecognizer is UISwipeGestureRecognizer {
937 | let swipeGestureRecognizer = otherGestureRecognizer as! UISwipeGestureRecognizer
/host/spi-builder-workspace/Sources/Chart/Chart.swift:935:132: error: cannot find type 'UIGestureRecognizer' in scope
933 | extension Chart: UIGestureRecognizerDelegate {
934 |
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
| `- error: cannot find type 'UIGestureRecognizer' in scope
936 | if gestureRecognizer is UIPanGestureRecognizer && otherGestureRecognizer is UISwipeGestureRecognizer {
937 | let swipeGestureRecognizer = otherGestureRecognizer as! UISwipeGestureRecognizer
/host/spi-builder-workspace/Sources/Chart/Chart.swift:952:11: error: cannot find type 'Date' in scope
950 | }
951 |
952 | extension Date {
| `- error: cannot find type 'Date' in scope
953 | func addMonth(months: Int) -> Date? {
954 | return Calendar.current.date(byAdding: .month, value: months, to: self)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:115:3: error: 'super' cannot be used in class 'Chart' because it has no superclass
113 |
114 | override init(frame: CGRect) {
115 | super.init(frame: frame)
| `- error: 'super' cannot be used in class 'Chart' because it has no superclass
116 | commonInit()
117 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:120:3: error: 'super' cannot be used in class 'Chart' because it has no superclass
118 |
119 | required init?(coder: NSCoder) {
120 | super.init(coder: coder)
| `- error: 'super' cannot be used in class 'Chart' because it has no superclass
121 | commonInit()
122 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:125:21: error: cannot find 'UIFont' in scope
123 |
124 | private func commonInit() {
125 | self.tickerFont = UIFont.systemFont(ofSize: 25.0 * screenScale, weight: UIFont.Weight.bold)
| `- error: cannot find 'UIFont' in scope
126 | self.tickerAttributes = [
127 | NSAttributedString.Key.font: self.tickerFont!,
/host/spi-builder-workspace/Sources/Chart/Chart.swift:125:75: error: cannot find 'UIFont' in scope
123 |
124 | private func commonInit() {
125 | self.tickerFont = UIFont.systemFont(ofSize: 25.0 * screenScale, weight: UIFont.Weight.bold)
| `- error: cannot find 'UIFont' in scope
126 | self.tickerAttributes = [
127 | NSAttributedString.Key.font: self.tickerFont!,
/host/spi-builder-workspace/Sources/Chart/Chart.swift:127:4: error: cannot find 'NSAttributedString' in scope
125 | self.tickerFont = UIFont.systemFont(ofSize: 25.0 * screenScale, weight: UIFont.Weight.bold)
126 | self.tickerAttributes = [
127 | NSAttributedString.Key.font: self.tickerFont!,
| `- error: cannot find 'NSAttributedString' in scope
128 | NSAttributedString.Key.foregroundColor: self.textColor
129 | ]
/host/spi-builder-workspace/Sources/Chart/Chart.swift:128:4: error: cannot find 'NSAttributedString' in scope
126 | self.tickerAttributes = [
127 | NSAttributedString.Key.font: self.tickerFont!,
128 | NSAttributedString.Key.foregroundColor: self.textColor
| `- error: cannot find 'NSAttributedString' in scope
129 | ]
130 | isUserInteractionEnabled = true
/host/spi-builder-workspace/Sources/Chart/Chart.swift:130:3: error: cannot find 'isUserInteractionEnabled' in scope
128 | NSAttributedString.Key.foregroundColor: self.textColor
129 | ]
130 | isUserInteractionEnabled = true
| `- error: cannot find 'isUserInteractionEnabled' in scope
131 | recognizerLongPress = UILongPressGestureRecognizer(target: self, action: #selector(longPress(gestureRecognizer:)))
132 | recognizerLongPress?.delegate = self
/host/spi-builder-workspace/Sources/Chart/Chart.swift:131:25: error: cannot find 'UILongPressGestureRecognizer' in scope
129 | ]
130 | isUserInteractionEnabled = true
131 | recognizerLongPress = UILongPressGestureRecognizer(target: self, action: #selector(longPress(gestureRecognizer:)))
| `- error: cannot find 'UILongPressGestureRecognizer' in scope
132 | recognizerLongPress?.delegate = self
133 | addGestureRecognizer(recognizerLongPress!)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:131:76: error: '#selector' can only be used with the Objective-C runtime
129 | ]
130 | isUserInteractionEnabled = true
131 | recognizerLongPress = UILongPressGestureRecognizer(target: self, action: #selector(longPress(gestureRecognizer:)))
| `- error: '#selector' can only be used with the Objective-C runtime
132 | recognizerLongPress?.delegate = self
133 | addGestureRecognizer(recognizerLongPress!)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:133:3: error: cannot find 'addGestureRecognizer' in scope
131 | recognizerLongPress = UILongPressGestureRecognizer(target: self, action: #selector(longPress(gestureRecognizer:)))
132 | recognizerLongPress?.delegate = self
133 | addGestureRecognizer(recognizerLongPress!)
| `- error: cannot find 'addGestureRecognizer' in scope
134 |
135 | recognizerLeft = UISwipeGestureRecognizer(target: self, action: #selector(swipe(gestureRecognizer:)))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:135:20: error: cannot find 'UISwipeGestureRecognizer' in scope
133 | addGestureRecognizer(recognizerLongPress!)
134 |
135 | recognizerLeft = UISwipeGestureRecognizer(target: self, action: #selector(swipe(gestureRecognizer:)))
| `- error: cannot find 'UISwipeGestureRecognizer' in scope
136 | recognizerLeft!.direction = UISwipeGestureRecognizer.Direction.left
137 | recognizerLeft!.numberOfTouchesRequired = 1
/host/spi-builder-workspace/Sources/Chart/Chart.swift:135:67: error: '#selector' can only be used with the Objective-C runtime
133 | addGestureRecognizer(recognizerLongPress!)
134 |
135 | recognizerLeft = UISwipeGestureRecognizer(target: self, action: #selector(swipe(gestureRecognizer:)))
| `- error: '#selector' can only be used with the Objective-C runtime
136 | recognizerLeft!.direction = UISwipeGestureRecognizer.Direction.left
137 | recognizerLeft!.numberOfTouchesRequired = 1
/host/spi-builder-workspace/Sources/Chart/Chart.swift:136:31: error: cannot find 'UISwipeGestureRecognizer' in scope
134 |
135 | recognizerLeft = UISwipeGestureRecognizer(target: self, action: #selector(swipe(gestureRecognizer:)))
136 | recognizerLeft!.direction = UISwipeGestureRecognizer.Direction.left
| `- error: cannot find 'UISwipeGestureRecognizer' in scope
137 | recognizerLeft!.numberOfTouchesRequired = 1
138 | recognizerLeft!.delegate = self
/host/spi-builder-workspace/Sources/Chart/Chart.swift:139:3: error: cannot find 'addGestureRecognizer' in scope
137 | recognizerLeft!.numberOfTouchesRequired = 1
138 | recognizerLeft!.delegate = self
139 | addGestureRecognizer(recognizerLeft!)
| `- error: cannot find 'addGestureRecognizer' in scope
140 |
141 | recognizerRight = UISwipeGestureRecognizer(target: self, action: #selector(swipe(gestureRecognizer:)))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:141:21: error: cannot find 'UISwipeGestureRecognizer' in scope
139 | addGestureRecognizer(recognizerLeft!)
140 |
141 | recognizerRight = UISwipeGestureRecognizer(target: self, action: #selector(swipe(gestureRecognizer:)))
| `- error: cannot find 'UISwipeGestureRecognizer' in scope
142 | recognizerRight!.direction = UISwipeGestureRecognizer.Direction.right
143 | recognizerRight!.numberOfTouchesRequired = 1
/host/spi-builder-workspace/Sources/Chart/Chart.swift:141:68: error: '#selector' can only be used with the Objective-C runtime
139 | addGestureRecognizer(recognizerLeft!)
140 |
141 | recognizerRight = UISwipeGestureRecognizer(target: self, action: #selector(swipe(gestureRecognizer:)))
| `- error: '#selector' can only be used with the Objective-C runtime
142 | recognizerRight!.direction = UISwipeGestureRecognizer.Direction.right
143 | recognizerRight!.numberOfTouchesRequired = 1
/host/spi-builder-workspace/Sources/Chart/Chart.swift:142:32: error: cannot find 'UISwipeGestureRecognizer' in scope
140 |
141 | recognizerRight = UISwipeGestureRecognizer(target: self, action: #selector(swipe(gestureRecognizer:)))
142 | recognizerRight!.direction = UISwipeGestureRecognizer.Direction.right
| `- error: cannot find 'UISwipeGestureRecognizer' in scope
143 | recognizerRight!.numberOfTouchesRequired = 1
144 | recognizerRight!.delegate = self
/host/spi-builder-workspace/Sources/Chart/Chart.swift:145:3: error: cannot find 'addGestureRecognizer' in scope
143 | recognizerRight!.numberOfTouchesRequired = 1
144 | recognizerRight!.delegate = self
145 | addGestureRecognizer(recognizerRight!)
| `- error: cannot find 'addGestureRecognizer' in scope
146 |
147 | self.becomeFirstResponder()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:147:8: error: value of type 'Chart' has no member 'becomeFirstResponder'
145 | addGestureRecognizer(recognizerRight!)
146 |
147 | self.becomeFirstResponder()
| `- error: value of type 'Chart' has no member 'becomeFirstResponder'
148 | }
149 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:151:3: error: 'super' cannot be used in class 'Chart' because it has no superclass
149 |
150 | public override func layoutSubviews() {
151 | super.layoutSubviews()
| `- error: 'super' cannot be used in class 'Chart' because it has no superclass
152 | self.backgroundColor = UIColor.clear
153 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:152:26: error: cannot find 'UIColor' in scope
150 | public override func layoutSubviews() {
151 | super.layoutSubviews()
152 | self.backgroundColor = UIColor.clear
| `- error: cannot find 'UIColor' in scope
153 | }
154 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:152:8: error: value of type 'Chart' has no member 'backgroundColor'
150 | public override func layoutSubviews() {
151 | super.layoutSubviews()
152 | self.backgroundColor = UIColor.clear
| `- error: value of type 'Chart' has no member 'backgroundColor'
153 | }
154 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:156:18: error: cannot find 'CGRect' in scope
154 |
155 | public override func draw(_ rect: CGRect) {
156 | let clipArea = CGRect(x: rect.minX + panLeft - 6, y: rect.minY + panTop - 6, width: rect.maxX - panRight - panLeft + 6, height: rect.height - panBottom - panTop + 6)
| `- error: cannot find 'CGRect' in scope
157 | baserect = rect
158 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:156:18: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
154 |
155 | public override func draw(_ rect: CGRect) {
156 | let clipArea = CGRect(x: rect.minX + panLeft - 6, y: rect.minY + panTop - 6, width: rect.maxX - panRight - panLeft + 6, height: rect.height - panBottom - panTop + 6)
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
157 | baserect = rect
158 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:160:13: error: cannot find 'UIGraphicsGetCurrentContext' in scope
158 |
159 | // Graphic context
160 | context = UIGraphicsGetCurrentContext()
| `- error: cannot find 'UIGraphicsGetCurrentContext' in scope
161 | CATransaction.begin()
162 | CATransaction.setDisableActions(true)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:161:3: error: cannot find 'CATransaction' in scope
159 | // Graphic context
160 | context = UIGraphicsGetCurrentContext()
161 | CATransaction.begin()
| `- error: cannot find 'CATransaction' in scope
162 | CATransaction.setDisableActions(true)
163 | drawGrids()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:162:3: error: cannot find 'CATransaction' in scope
160 | context = UIGraphicsGetCurrentContext()
161 | CATransaction.begin()
162 | CATransaction.setDisableActions(true)
| `- error: cannot find 'CATransaction' in scope
163 | drawGrids()
164 | drawAxis()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:175:3: error: cannot find 'CATransaction' in scope
173 | }
174 | context?.restoreGState()
175 | CATransaction.commit()
| `- error: cannot find 'CATransaction' in scope
176 |
177 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:207:19: error: cannot find 'sqrt' in scope
205 | let dy = location.y - pY
206 |
207 | let distance = sqrt(dx * dx + dy * dy)
| `- error: cannot find 'sqrt' in scope
208 | if distance <= distance_min {
209 | distance_min = distance
/host/spi-builder-workspace/Sources/Chart/Chart.swift:211:20: error: cannot find 'CGPoint' in scope
209 | distance_min = distance
210 | find = index
211 | balloonPoint = CGPoint(x: pX, y: pY)
| `- error: cannot find 'CGPoint' in scope
212 | balloonValue = "\(NSString(format: "%.2f", values[find])) \(balloonUM)"
213 | let date = Date(timeIntervalSince1970: keys[find])
/host/spi-builder-workspace/Sources/Chart/Chart.swift:212:23: error: cannot find 'NSString' in scope
210 | find = index
211 | balloonPoint = CGPoint(x: pX, y: pY)
212 | balloonValue = "\(NSString(format: "%.2f", values[find])) \(balloonUM)"
| `- error: cannot find 'NSString' in scope
213 | let date = Date(timeIntervalSince1970: keys[find])
214 | let label = Chart.stringFromDate(date: date, format: balloonFormat) as NSString
/host/spi-builder-workspace/Sources/Chart/Chart.swift:213:16: error: cannot find 'Date' in scope
211 | balloonPoint = CGPoint(x: pX, y: pY)
212 | balloonValue = "\(NSString(format: "%.2f", values[find])) \(balloonUM)"
213 | let date = Date(timeIntervalSince1970: keys[find])
| `- error: cannot find 'Date' in scope
214 | let label = Chart.stringFromDate(date: date, format: balloonFormat) as NSString
215 | balloonDate = "\(label)"
/host/spi-builder-workspace/Sources/Chart/Chart.swift:214:76: error: cannot find type 'NSString' in scope
212 | balloonValue = "\(NSString(format: "%.2f", values[find])) \(balloonUM)"
213 | let date = Date(timeIntervalSince1970: keys[find])
214 | let label = Chart.stringFromDate(date: date, format: balloonFormat) as NSString
| `- error: cannot find type 'NSString' in scope
215 | balloonDate = "\(label)"
216 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:221:34: error: cannot find 'UIImpactFeedbackGenerator' in scope
219 | if find != -1 && distance_min < 15.0 &&
220 | values[find] != Double.nan {
221 | let impactFeedbackgenerator = UIImpactFeedbackGenerator(style: .medium)
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
222 | impactFeedbackgenerator.prepare()
223 | impactFeedbackgenerator.impactOccurred()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:221:68: error: cannot infer contextual base in reference to member 'medium'
219 | if find != -1 && distance_min < 15.0 &&
220 | values[find] != Double.nan {
221 | let impactFeedbackgenerator = UIImpactFeedbackGenerator(style: .medium)
| `- error: cannot infer contextual base in reference to member 'medium'
222 | impactFeedbackgenerator.prepare()
223 | impactFeedbackgenerator.impactOccurred()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:231:24: error: cannot find 'Timer' in scope
229 | }
230 |
231 | self.balloonTimer = Timer.scheduledTimer(
| `- error: cannot find 'Timer' in scope
232 | timeInterval: 10,
233 | target: self,
/host/spi-builder-workspace/Sources/Chart/Chart.swift:234:15: error: '#selector' can only be used with the Objective-C runtime
232 | timeInterval: 10,
233 | target: self,
234 | selector: #selector(self.unselect),
| `- error: '#selector' can only be used with the Objective-C runtime
235 | userInfo: nil,
236 | repeats: false
/host/spi-builder-workspace/Sources/Chart/Chart.swift:243:8: error: value of type 'Chart' has no member 'setNeedsDisplay'
241 |
242 | delegate?.emitLongPress(from: self)
243 | self.setNeedsDisplay()
| `- error: value of type 'Chart' has no member 'setNeedsDisplay'
244 | }
245 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:255:3: error: cannot find 'setNeedsDisplay' in scope
253 | self.balloonTimer = nil
254 | }
255 | setNeedsDisplay()
| `- error: cannot find 'setNeedsDisplay' in scope
256 | }
257 | /// Replaces the current data with the provided points in **keys** and **values**. The provided
/host/spi-builder-workspace/Sources/Chart/Chart.swift:271:3: error: cannot find 'setNeedsDisplay' in scope
269 | self.keys.reserveCapacity(self.values.count)
270 | }
271 | setNeedsDisplay()
| `- error: cannot find 'setNeedsDisplay' in scope
272 | }
273 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:281:3: error: cannot find 'setNeedsDisplay' in scope
279 | self.values.removeAll()
280 | self.status.removeAll()
281 | setNeedsDisplay()
| `- error: cannot find 'setNeedsDisplay' in scope
282 | }
283 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:286:21: error: cannot find 'CGPoint' in scope
284 | private func drawAxis() {
285 | //Draw X axis
286 | context?.move(to: CGPoint(x: panLeft, y: baserect!.maxY - panBottom))
| `- error: cannot find 'CGPoint' in scope
287 | context?.addLine(to: CGPoint(x: baserect!.maxX - panRight, y: baserect!.maxY - panBottom))
288 | context?.setStrokeColor(axisColor.cgColor)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:287:24: error: cannot find 'CGPoint' in scope
285 | //Draw X axis
286 | context?.move(to: CGPoint(x: panLeft, y: baserect!.maxY - panBottom))
287 | context?.addLine(to: CGPoint(x: baserect!.maxX - panRight, y: baserect!.maxY - panBottom))
| `- error: cannot find 'CGPoint' in scope
288 | context?.setStrokeColor(axisColor.cgColor)
289 | context?.setLineDash(phase: 0, lengths: [])
/host/spi-builder-workspace/Sources/Chart/Chart.swift:312:22: error: cannot find 'CGPoint' in scope
310 |
311 | for i in 0 ..< ticksX.count {
312 | context?.move(to: CGPoint(x: xPositions[i], y: panTop))
| `- error: cannot find 'CGPoint' in scope
313 | context?.addLine(to: CGPoint(x: xPositions[i], y: baserect!.maxY - panBottom))
314 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:313:25: error: cannot find 'CGPoint' in scope
311 | for i in 0 ..< ticksX.count {
312 | context?.move(to: CGPoint(x: xPositions[i], y: panTop))
313 | context?.addLine(to: CGPoint(x: xPositions[i], y: baserect!.maxY - panBottom))
| `- error: cannot find 'CGPoint' in scope
314 | }
315 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:338:31: error: cannot find 'CGTextDrawingMode' in scope
336 | xPositions.append(currentX + panLeft)
337 | }
338 | context?.setTextDrawingMode(CGTextDrawingMode.fill)
| `- error: cannot find 'CGTextDrawingMode' in scope
339 |
340 | for i in 0 ..< ticksX.count {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:341:15: error: cannot find 'Date' in scope
339 |
340 | for i in 0 ..< ticksX.count {
341 | let date = Date(timeIntervalSince1970: ticksX[i])
| `- error: cannot find 'Date' in scope
342 | let label = Chart.stringFromDate(date: date, format: tickerFormat) as NSString
343 | let stringSize = label.size(withAttributes: tickerAttributes)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:342:74: error: cannot find type 'NSString' in scope
340 | for i in 0 ..< ticksX.count {
341 | let date = Date(timeIntervalSince1970: ticksX[i])
342 | let label = Chart.stringFromDate(date: date, format: tickerFormat) as NSString
| `- error: cannot find type 'NSString' in scope
343 | let stringSize = label.size(withAttributes: tickerAttributes)
344 | label.draw(at: CGPoint(x: xPositions[i] - stringSize.width / 2.0,
/host/spi-builder-workspace/Sources/Chart/Chart.swift:344:19: error: cannot find 'CGPoint' in scope
342 | let label = Chart.stringFromDate(date: date, format: tickerFormat) as NSString
343 | let stringSize = label.size(withAttributes: tickerAttributes)
344 | label.draw(at: CGPoint(x: xPositions[i] - stringSize.width / 2.0,
| `- error: cannot find 'CGPoint' in scope
345 | y: baserect!.maxY - panBottom + 3.0), withAttributes: tickerAttributes)
346 | context?.move(to: CGPoint(x: xPositions[i], y: baserect!.maxY - panBottom))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:346:22: error: cannot find 'CGPoint' in scope
344 | label.draw(at: CGPoint(x: xPositions[i] - stringSize.width / 2.0,
345 | y: baserect!.maxY - panBottom + 3.0), withAttributes: tickerAttributes)
346 | context?.move(to: CGPoint(x: xPositions[i], y: baserect!.maxY - panBottom))
| `- error: cannot find 'CGPoint' in scope
347 | context?.addLine(to: CGPoint(x: xPositions[i], y: baserect!.maxY - panBottom + 5.0))
348 | context?.strokePath()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:347:25: error: cannot find 'CGPoint' in scope
345 | y: baserect!.maxY - panBottom + 3.0), withAttributes: tickerAttributes)
346 | context?.move(to: CGPoint(x: xPositions[i], y: baserect!.maxY - panBottom))
347 | context?.addLine(to: CGPoint(x: xPositions[i], y: baserect!.maxY - panBottom + 5.0))
| `- error: cannot find 'CGPoint' in scope
348 | context?.strokePath()
349 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:352:16: error: cannot find 'NSString' in scope
350 | let coeY = (baserect!.maxY - panBottom - panTop) / (lmaxY - lminY)
351 | for i in 0 ..< ticksY.count {
352 | let label = NSString(format: "%5.0f", ticksY[i])
| `- error: cannot find 'NSString' in scope
353 | let stringSize = label.size(withAttributes: tickerAttributes)
354 | label.draw(at: CGPoint(x: baserect!.maxX - panRight + 10.0,
/host/spi-builder-workspace/Sources/Chart/Chart.swift:354:19: error: cannot find 'CGPoint' in scope
352 | let label = NSString(format: "%5.0f", ticksY[i])
353 | let stringSize = label.size(withAttributes: tickerAttributes)
354 | label.draw(at: CGPoint(x: baserect!.maxX - panRight + 10.0,
| `- error: cannot find 'CGPoint' in scope
355 | y: (coeY * (lmaxY - ticksY[i])) + panTop - (stringSize.height / 2.0)), withAttributes: tickerAttributes)
356 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:354:4: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
352 | let label = NSString(format: "%5.0f", ticksY[i])
353 | let stringSize = label.size(withAttributes: tickerAttributes)
354 | label.draw(at: CGPoint(x: baserect!.maxX - panRight + 10.0,
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
355 | y: (coeY * (lmaxY - ticksY[i])) + panTop - (stringSize.height / 2.0)), withAttributes: tickerAttributes)
356 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:382:14: error: cannot find 'UIBezierPath' in scope
380 | context!.saveGState()
381 |
382 | var path = UIBezierPath()
| `- error: cannot find 'UIBezierPath' in scope
383 | path.lineWidth = 0.0
384 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:397:23: error: cannot find 'CGPoint' in scope
395 | if values[index].isNaN {
396 | if start == false {
397 | path.addLine(to: CGPoint(x: lastX, y: lastY))
| `- error: cannot find 'CGPoint' in scope
398 | path.close()
399 | if count > 1 {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:403:13: error: cannot find 'UIBezierPath' in scope
401 | }
402 | count = 0
403 | path = UIBezierPath()
| `- error: cannot find 'UIBezierPath' in scope
404 | path.lineWidth = 0.0
405 | start = true
/host/spi-builder-workspace/Sources/Chart/Chart.swift:420:19: error: cannot find 'CGPoint' in scope
418 | y = (values[index] > 0) ? baserect!.maxY - panBottom : baserect!.minY + panTop
419 | }
420 | path.move(to: CGPoint(x: pX, y: y))
| `- error: cannot find 'CGPoint' in scope
421 | path.addLine(to: CGPoint(x: pX, y: pY))
422 | start = false
/host/spi-builder-workspace/Sources/Chart/Chart.swift:421:22: error: cannot find 'CGPoint' in scope
419 | }
420 | path.move(to: CGPoint(x: pX, y: y))
421 | path.addLine(to: CGPoint(x: pX, y: pY))
| `- error: cannot find 'CGPoint' in scope
422 | start = false
423 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:436:22: error: cannot find 'CGPointMake' in scope
434 | lastY = (values[index] > 0) ? baserect!.maxY - panBottom : baserect!.minY + panTop
435 | }
436 | path.addLine(to: CGPointMake(pX, pY))
| `- error: cannot find 'CGPointMake' in scope
437 | }
438 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:441:21: error: cannot find 'CGPoint' in scope
439 |
440 | if start == false {
441 | path.addLine(to: CGPoint(x: lastX, y: lastY))
| `- error: cannot find 'CGPoint' in scope
442 | path.close()
443 | if count > 1 {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:475:22: error: cannot find 'CGPoint' in scope
473 | for _ in keys {
474 | index += 1
475 | context?.move(to: CGPoint(x: pX, y: pY))
| `- error: cannot find 'CGPoint' in scope
476 | pX = xPositions[index]
477 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:497:26: error: cannot find 'CGPoint' in scope
495 | context?.setLineWidth(2.0)
496 | if values[index - 1].isNaN == false {
497 | context?.addLine(to: CGPoint(x: pX, y: pY))
| `- error: cannot find 'CGPoint' in scope
498 | context?.strokePath()
499 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:542:28: error: cannot find 'CGRect' in scope
540 | }
541 | context?.setFillColor(status.count > index && status[index] == true ? disabledColor.cgColor : scatterColor.cgColor)
542 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * screenScale), y: pY - (radius * screenScale)), size: CGSize(width: (radius * 2.0 * screenScale), height: (radius * 2.0 * screenScale))))
| `- error: cannot find 'CGRect' in scope
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:542:43: error: cannot find 'CGPoint' in scope
540 | }
541 | context?.setFillColor(status.count > index && status[index] == true ? disabledColor.cgColor : scatterColor.cgColor)
542 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * screenScale), y: pY - (radius * screenScale)), size: CGSize(width: (radius * 2.0 * screenScale), height: (radius * 2.0 * screenScale))))
| `- error: cannot find 'CGPoint' in scope
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:542:122: error: cannot find 'CGSize' in scope
540 | }
541 | context?.setFillColor(status.count > index && status[index] == true ? disabledColor.cgColor : scatterColor.cgColor)
542 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * screenScale), y: pY - (radius * screenScale)), size: CGSize(width: (radius * 2.0 * screenScale), height: (radius * 2.0 * screenScale))))
| `- error: cannot find 'CGSize' in scope
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:542:4: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
540 | }
541 | context?.setFillColor(status.count > index && status[index] == true ? disabledColor.cgColor : scatterColor.cgColor)
542 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * screenScale), y: pY - (radius * screenScale)), size: CGSize(width: (radius * 2.0 * screenScale), height: (radius * 2.0 * screenScale))))
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:544:26: error: cannot find 'UIColor' in scope
542 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * screenScale), y: pY - (radius * screenScale)), size: CGSize(width: (radius * 2.0 * screenScale), height: (radius * 2.0 * screenScale))))
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
| `- error: cannot find 'UIColor' in scope
545 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * 0.5 * screenScale), y: pY - (radius * 0.5 * screenScale)), size: CGSize(width: (radius * screenScale), height: (radius * screenScale))))
546 | context?.fillPath()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:545:28: error: cannot find 'CGRect' in scope
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
545 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * 0.5 * screenScale), y: pY - (radius * 0.5 * screenScale)), size: CGSize(width: (radius * screenScale), height: (radius * screenScale))))
| `- error: cannot find 'CGRect' in scope
546 | context?.fillPath()
547 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:545:43: error: cannot find 'CGPoint' in scope
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
545 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * 0.5 * screenScale), y: pY - (radius * 0.5 * screenScale)), size: CGSize(width: (radius * screenScale), height: (radius * screenScale))))
| `- error: cannot find 'CGPoint' in scope
546 | context?.fillPath()
547 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:545:134: error: cannot find 'CGSize' in scope
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
545 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * 0.5 * screenScale), y: pY - (radius * 0.5 * screenScale)), size: CGSize(width: (radius * screenScale), height: (radius * screenScale))))
| `- error: cannot find 'CGSize' in scope
546 | context?.fillPath()
547 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:545:4: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
543 | context?.fillPath()
544 | context?.setFillColor(UIColor.white.cgColor)
545 | context?.addEllipse(in: CGRect(origin: CGPoint(x: pX - (radius * 0.5 * screenScale), y: pY - (radius * 0.5 * screenScale)), size: CGSize(width: (radius * screenScale), height: (radius * screenScale))))
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
546 | context?.fillPath()
547 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:552:24: error: cannot find 'NSMutableParagraphStyle' in scope
550 |
551 | func drawBalloon(atPoint point: CGPoint, value: String, date: String) {
552 | let paragraphStyle = NSMutableParagraphStyle()
| `- error: cannot find 'NSMutableParagraphStyle' in scope
553 | paragraphStyle.alignment = .left
554 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:553:31: error: cannot infer contextual base in reference to member 'left'
551 | func drawBalloon(atPoint point: CGPoint, value: String, date: String) {
552 | let paragraphStyle = NSMutableParagraphStyle()
553 | paragraphStyle.alignment = .left
| `- error: cannot infer contextual base in reference to member 'left'
554 |
555 | let attributesValue = [
/host/spi-builder-workspace/Sources/Chart/Chart.swift:556:4: error: cannot find 'NSAttributedString' in scope
554 |
555 | let attributesValue = [
556 | NSAttributedString.Key.foregroundColor: UIColor.white,
| `- error: cannot find 'NSAttributedString' in scope
557 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 18),
558 | NSAttributedString.Key.paragraphStyle: paragraphStyle
/host/spi-builder-workspace/Sources/Chart/Chart.swift:556:44: error: cannot find 'UIColor' in scope
554 |
555 | let attributesValue = [
556 | NSAttributedString.Key.foregroundColor: UIColor.white,
| `- error: cannot find 'UIColor' in scope
557 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 18),
558 | NSAttributedString.Key.paragraphStyle: paragraphStyle
/host/spi-builder-workspace/Sources/Chart/Chart.swift:557:4: error: cannot find 'NSAttributedString' in scope
555 | let attributesValue = [
556 | NSAttributedString.Key.foregroundColor: UIColor.white,
557 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 18),
| `- error: cannot find 'NSAttributedString' in scope
558 | NSAttributedString.Key.paragraphStyle: paragraphStyle
559 | ]
/host/spi-builder-workspace/Sources/Chart/Chart.swift:557:33: error: cannot find 'UIFont' in scope
555 | let attributesValue = [
556 | NSAttributedString.Key.foregroundColor: UIColor.white,
557 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 18),
| `- error: cannot find 'UIFont' in scope
558 | NSAttributedString.Key.paragraphStyle: paragraphStyle
559 | ]
/host/spi-builder-workspace/Sources/Chart/Chart.swift:558:4: error: cannot find 'NSAttributedString' in scope
556 | NSAttributedString.Key.foregroundColor: UIColor.white,
557 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 18),
558 | NSAttributedString.Key.paragraphStyle: paragraphStyle
| `- error: cannot find 'NSAttributedString' in scope
559 | ]
560 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:562:4: error: cannot find 'NSAttributedString' in scope
560 |
561 | let attributesDate = [
562 | NSAttributedString.Key.foregroundColor: UIColor.white,
| `- error: cannot find 'NSAttributedString' in scope
563 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 10),
564 | NSAttributedString.Key.paragraphStyle: paragraphStyle
/host/spi-builder-workspace/Sources/Chart/Chart.swift:562:44: error: cannot find 'UIColor' in scope
560 |
561 | let attributesDate = [
562 | NSAttributedString.Key.foregroundColor: UIColor.white,
| `- error: cannot find 'UIColor' in scope
563 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 10),
564 | NSAttributedString.Key.paragraphStyle: paragraphStyle
/host/spi-builder-workspace/Sources/Chart/Chart.swift:563:4: error: cannot find 'NSAttributedString' in scope
561 | let attributesDate = [
562 | NSAttributedString.Key.foregroundColor: UIColor.white,
563 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 10),
| `- error: cannot find 'NSAttributedString' in scope
564 | NSAttributedString.Key.paragraphStyle: paragraphStyle
565 | ]
/host/spi-builder-workspace/Sources/Chart/Chart.swift:563:33: error: cannot find 'UIFont' in scope
561 | let attributesDate = [
562 | NSAttributedString.Key.foregroundColor: UIColor.white,
563 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 10),
| `- error: cannot find 'UIFont' in scope
564 | NSAttributedString.Key.paragraphStyle: paragraphStyle
565 | ]
/host/spi-builder-workspace/Sources/Chart/Chart.swift:564:4: error: cannot find 'NSAttributedString' in scope
562 | NSAttributedString.Key.foregroundColor: UIColor.white,
563 | NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 10),
564 | NSAttributedString.Key.paragraphStyle: paragraphStyle
| `- error: cannot find 'NSAttributedString' in scope
565 | ]
566 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:567:17: error: cannot find 'NSAttributedString' in scope
565 | ]
566 |
567 | let asvalue = NSAttributedString(string: value, attributes: attributesValue)
| `- error: cannot find 'NSAttributedString' in scope
568 | let asdate = NSAttributedString(string: date, attributes: attributesDate)
569 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:568:16: error: cannot find 'NSAttributedString' in scope
566 |
567 | let asvalue = NSAttributedString(string: value, attributes: attributesValue)
568 | let asdate = NSAttributedString(string: date, attributes: attributesDate)
| `- error: cannot find 'NSAttributedString' in scope
569 |
570 | let bw = max(asvalue.size().width, asdate.size().width) + 10
/host/spi-builder-workspace/Sources/Chart/Chart.swift:583:14: error: cannot find 'UIBezierPath' in scope
581 | let by = baserect!.height - panBottom - 45
582 |
583 | let path = UIBezierPath(roundedRect: CGRect(x: bx, y: by, width: bw, height: bh), cornerRadius: 5)
| `- error: cannot find 'UIBezierPath' in scope
584 | path.close()
585 | UIColor.black.withAlphaComponent(0.7).setFill()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:583:40: error: cannot find 'CGRect' in scope
581 | let by = baserect!.height - panBottom - 45
582 |
583 | let path = UIBezierPath(roundedRect: CGRect(x: bx, y: by, width: bw, height: bh), cornerRadius: 5)
| `- error: cannot find 'CGRect' in scope
584 | path.close()
585 | UIColor.black.withAlphaComponent(0.7).setFill()
/host/spi-builder-workspace/Sources/Chart/Chart.swift:585:3: error: cannot find 'UIColor' in scope
583 | let path = UIBezierPath(roundedRect: CGRect(x: bx, y: by, width: bw, height: bh), cornerRadius: 5)
584 | path.close()
585 | UIColor.black.withAlphaComponent(0.7).setFill()
| `- error: cannot find 'UIColor' in scope
586 | path.fill()
587 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:588:20: error: cannot find 'CGRect' in scope
586 | path.fill()
587 |
588 | asvalue.draw(in: CGRect(x: bx + 5, y: by + 5, width: bw - 10, height: asvalue.size().height))
| `- error: cannot find 'CGRect' in scope
589 | asdate.draw(in: CGRect(x: bx + 5, y: by + asvalue.size().height + 5, width: bw - 10, height: asdate.size().height))
590 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:589:19: error: cannot find 'CGRect' in scope
587 |
588 | asvalue.draw(in: CGRect(x: bx + 5, y: by + 5, width: bw - 10, height: asvalue.size().height))
589 | asdate.draw(in: CGRect(x: bx + 5, y: by + asvalue.size().height + 5, width: bw - 10, height: asdate.size().height))
| `- error: cannot find 'CGRect' in scope
590 | }
591 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:618:12: error: cannot find 'DateFormatter' in scope
616 | /// - returns: A string matched with the format.
617 | static func stringFromDate(date: Date, format: String, timeZone: TimeZone? = .current) -> String {
618 | let df = DateFormatter()
| `- error: cannot find 'DateFormatter' in scope
619 |
620 | df.timeZone = timeZone
/host/spi-builder-workspace/Sources/Chart/Chart.swift:645:10: error: cannot find 'Date' in scope
643 | /// - returns: A Date
644 | static func keyToDateTime(key: Double) -> Date {
645 | return Date(timeIntervalSince1970: TimeInterval(key))
| `- error: cannot find 'Date' in scope
646 | }
647 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:645:38: error: cannot find 'TimeInterval' in scope
643 | /// - returns: A Date
644 | static func keyToDateTime(key: Double) -> Date {
645 | return Date(timeIntervalSince1970: TimeInterval(key))
| `- error: cannot find 'TimeInterval' in scope
646 | }
647 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:658:98: error: cannot find 'TimeZone' in scope
656 | trimTicks(range: rangeX, ticks: &ticksX, keepOneOutlier: false)
657 | case .atDate:
658 | ticksX = createTickVector(tickStep: tickStepX, origin: tickOriginX, range: rangeX, timeZone: TimeZone.current)
| `- error: cannot find 'TimeZone' in scope
659 | trimTicks(range: rangeX, ticks: &ticksX, keepOneOutlier: false)
660 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:658:107: error: extra argument 'timeZone' in call
656 | trimTicks(range: rangeX, ticks: &ticksX, keepOneOutlier: false)
657 | case .atDate:
658 | ticksX = createTickVector(tickStep: tickStepX, origin: tickOriginX, range: rangeX, timeZone: TimeZone.current)
| `- error: extra argument 'timeZone' in call
659 | trimTicks(range: rangeX, ticks: &ticksX, keepOneOutlier: false)
660 | }
/host/spi-builder-workspace/Sources/Chart/Chart.swift:679:98: error: cannot find 'TimeZone' in scope
677 |
678 | case .atDate:
679 | ticksY = createTickVector(tickStep: tickStepY, origin: tickOriginY, range: rangeY, timeZone: TimeZone.current)
| `- error: cannot find 'TimeZone' in scope
680 | trimTicks(range: rangeY, ticks: &ticksY, keepOneOutlier: false)
681 | let isOriginInDST = TimeZone.current.isDaylightSavingTime(for: Chart.keyToDateTime(key: tickOriginY))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:679:107: error: extra argument 'timeZone' in call
677 |
678 | case .atDate:
679 | ticksY = createTickVector(tickStep: tickStepY, origin: tickOriginY, range: rangeY, timeZone: TimeZone.current)
| `- error: extra argument 'timeZone' in call
680 | trimTicks(range: rangeY, ticks: &ticksY, keepOneOutlier: false)
681 | let isOriginInDST = TimeZone.current.isDaylightSavingTime(for: Chart.keyToDateTime(key: tickOriginY))
/host/spi-builder-workspace/Sources/Chart/Chart.swift:681:25: error: cannot find 'TimeZone' in scope
679 | ticksY = createTickVector(tickStep: tickStepY, origin: tickOriginY, range: rangeY, timeZone: TimeZone.current)
680 | trimTicks(range: rangeY, ticks: &ticksY, keepOneOutlier: false)
681 | let isOriginInDST = TimeZone.current.isDaylightSavingTime(for: Chart.keyToDateTime(key: tickOriginY))
| `- error: cannot find 'TimeZone' in scope
682 |
683 | for i in 0 ..< ticksY.count {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:685:24: error: cannot find 'TimeZone' in scope
683 | for i in 0 ..< ticksY.count {
684 | let tickDateTime = Chart.keyToDateTime(key: ticksY[i])
685 | let isTickInDST = TimeZone.current.isDaylightSavingTime(for: tickDateTime)
| `- error: cannot find 'TimeZone' in scope
686 |
687 | // Se c'è una differenza tra ora legale e solare, aggiusta l'orario
/host/spi-builder-workspace/Sources/Chart/Chart.swift:690:27: error: cannot find type 'TimeInterval' in scope
688 | if isOriginInDST != isTickInDST {
689 | // Aggiusta di un'ora avanti o indietro
690 | let timeAdjustment: TimeInterval = isTickInDST ? -3600 : 3600
| `- error: cannot find type 'TimeInterval' in scope
691 | let adjustedDateTime = tickDateTime.addingTimeInterval(timeAdjustment)
692 | ticksY[i] = Chart.dateTimeToKey(date: adjustedDateTime)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:723:13: error: cannot find 'pow' in scope
721 | /// - returns: returns the magnitude of input as a power of 10.
722 | private func getMantissa(input: Double, magnitude: inout Double?) -> Double {
723 | let mag = pow(10.0, floor(log10(input)))
| `- error: cannot find 'pow' in scope
724 | if magnitude != nil {
725 | magnitude = mag
/host/spi-builder-workspace/Sources/Chart/Chart.swift:723:23: error: cannot find 'floor' in scope
721 | /// - returns: returns the magnitude of input as a power of 10.
722 | private func getMantissa(input: Double, magnitude: inout Double?) -> Double {
723 | let mag = pow(10.0, floor(log10(input)))
| `- error: cannot find 'floor' in scope
724 | if magnitude != nil {
725 | magnitude = mag
/host/spi-builder-workspace/Sources/Chart/Chart.swift:723:29: error: cannot find 'log10' in scope
721 | /// - returns: returns the magnitude of input as a power of 10.
722 | private func getMantissa(input: Double, magnitude: inout Double?) -> Double {
723 | let mag = pow(10.0, floor(log10(input)))
| `- error: cannot find 'log10' in scope
724 | if magnitude != nil {
725 | magnitude = mag
/host/spi-builder-workspace/Sources/Chart/Chart.swift:811:32: error: cannot find 'floor' in scope
809 | private func createTickVector(tickStep: Double, origin: Double, range: ClosedRange<Double>) -> [Double] {
810 | var result: [Double] = []
811 | let firstStep: Int64 = Int64(floor((range.lowerBound - origin) / tickStep))
| `- error: cannot find 'floor' in scope
812 | let lastStep: Int64 = Int64(ceil((range.upperBound - origin) / tickStep))
813 | var tickCount: Int64 = (lastStep - firstStep + 1)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:812:31: error: cannot find 'ceil' in scope
810 | var result: [Double] = []
811 | let firstStep: Int64 = Int64(floor((range.lowerBound - origin) / tickStep))
812 | let lastStep: Int64 = Int64(ceil((range.upperBound - origin) / tickStep))
| `- error: cannot find 'ceil' in scope
813 | var tickCount: Int64 = (lastStep - firstStep + 1)
814 | if tickCount < 0 {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:829:19: error: cannot find 'Calendar' in scope
827 |
828 | if !result.isEmpty {
829 | var calendar = Calendar.current
| `- error: cannot find 'Calendar' in scope
830 | calendar.timeZone = timeZone
831 | var tickDateTime: Date
/host/spi-builder-workspace/Sources/Chart/Chart.swift:831:22: error: cannot find type 'Date' in scope
829 | var calendar = Calendar.current
830 | calendar.timeZone = timeZone
831 | var tickDateTime: Date
| `- error: cannot find type 'Date' in scope
832 |
833 | if dateStrategy == .dsUniformTimeInDay {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:838:84: error: cannot infer contextual base in reference to member 'hour'
836 | for i in 0 ..< result.count {
837 | tickDateTime = Chart.keyToDateTime(key: result[i])
838 | if let updatedTickDateTime = calendar.date(bySettingHour: calendar.component(.hour, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'hour'
839 | minute: calendar.component(.minute, from: uniformDateTime),
840 | second: calendar.component(.second, from: uniformDateTime),
/host/spi-builder-workspace/Sources/Chart/Chart.swift:839:47: error: cannot infer contextual base in reference to member 'minute'
837 | tickDateTime = Chart.keyToDateTime(key: result[i])
838 | if let updatedTickDateTime = calendar.date(bySettingHour: calendar.component(.hour, from: uniformDateTime),
839 | minute: calendar.component(.minute, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'minute'
840 | second: calendar.component(.second, from: uniformDateTime),
841 | of: tickDateTime) {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:840:47: error: cannot infer contextual base in reference to member 'second'
838 | if let updatedTickDateTime = calendar.date(bySettingHour: calendar.component(.hour, from: uniformDateTime),
839 | minute: calendar.component(.minute, from: uniformDateTime),
840 | second: calendar.component(.second, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'second'
841 | of: tickDateTime) {
842 | result[i] = Chart.dateTimeToKey(date: updatedTickDateTime)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:850:58: error: cannot infer contextual base in reference to member 'hour'
848 | for i in 0 ..< result.count {
849 | tickDateTime = Chart.keyToDateTime(key: result[i])
850 | if calendar.date(bySettingHour: calendar.component(.hour, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'hour'
851 | minute: calendar.component(.minute, from: uniformDateTime),
852 | second: calendar.component(.second, from: uniformDateTime),
/host/spi-builder-workspace/Sources/Chart/Chart.swift:851:39: error: cannot infer contextual base in reference to member 'minute'
849 | tickDateTime = Chart.keyToDateTime(key: result[i])
850 | if calendar.date(bySettingHour: calendar.component(.hour, from: uniformDateTime),
851 | minute: calendar.component(.minute, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'minute'
852 | second: calendar.component(.second, from: uniformDateTime),
853 | of: tickDateTime) != nil {
/host/spi-builder-workspace/Sources/Chart/Chart.swift:852:39: error: cannot infer contextual base in reference to member 'second'
850 | if calendar.date(bySettingHour: calendar.component(.hour, from: uniformDateTime),
851 | minute: calendar.component(.minute, from: uniformDateTime),
852 | second: calendar.component(.second, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'second'
853 | of: tickDateTime) != nil {
854 | let range = calendar.range(of: .day, in: .month, for: tickDateTime)!
/host/spi-builder-workspace/Sources/Chart/Chart.swift:854:39: error: cannot infer contextual base in reference to member 'day'
852 | second: calendar.component(.second, from: uniformDateTime),
853 | of: tickDateTime) != nil {
854 | let range = calendar.range(of: .day, in: .month, for: tickDateTime)!
| `- error: cannot infer contextual base in reference to member 'day'
855 | let numDays = range.count
856 | let uniformDay = calendar.component(.day, from: uniformDateTime)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:854:49: error: cannot infer contextual base in reference to member 'month'
852 | second: calendar.component(.second, from: uniformDateTime),
853 | of: tickDateTime) != nil {
854 | let range = calendar.range(of: .day, in: .month, for: tickDateTime)!
| `- error: cannot infer contextual base in reference to member 'month'
855 | let numDays = range.count
856 | let uniformDay = calendar.component(.day, from: uniformDateTime)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:856:44: error: cannot infer contextual base in reference to member 'day'
854 | let range = calendar.range(of: .day, in: .month, for: tickDateTime)!
855 | let numDays = range.count
856 | let uniformDay = calendar.component(.day, from: uniformDateTime)
| `- error: cannot infer contextual base in reference to member 'day'
857 | let tickDay = calendar.component(.day, from: tickDateTime)
858 | let thisUniformDay : Int = uniformDay <= numDays ? uniformDay : numDays // don't exceed month (e.g. try to set day 31 in February)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:857:41: error: cannot infer contextual base in reference to member 'day'
855 | let numDays = range.count
856 | let uniformDay = calendar.component(.day, from: uniformDateTime)
857 | let tickDay = calendar.component(.day, from: tickDateTime)
| `- error: cannot infer contextual base in reference to member 'day'
858 | let thisUniformDay : Int = uniformDay <= numDays ? uniformDay : numDays // don't exceed month (e.g. try to set day 31 in February)
859 | if thisUniformDay - tickDay < -15 { // with leap years involved, date month may jump backwards or forwards, and needs to be corrected before setting day
/host/spi-builder-workspace/Sources/Chart/Chart.swift:864:42: error: cannot find 'DateComponents' in scope
862 | tickDateTime = tickDateTime.addMonth(months: -1)!
863 | }
864 | tickDateTime = calendar.date(from: DateComponents(
| `- error: cannot find 'DateComponents' in scope
865 | calendar: calendar,
866 | timeZone: timeZone,
/host/spi-builder-workspace/Sources/Chart/Chart.swift:867:34: error: cannot infer contextual base in reference to member 'year'
865 | calendar: calendar,
866 | timeZone: timeZone,
867 | year: calendar.component(.year, from: tickDateTime),
| `- error: cannot infer contextual base in reference to member 'year'
868 | month: calendar.component(.month, from: tickDateTime),
869 | day: calendar.component(.day, from: uniformDateTime),
/host/spi-builder-workspace/Sources/Chart/Chart.swift:868:35: error: cannot infer contextual base in reference to member 'month'
866 | timeZone: timeZone,
867 | year: calendar.component(.year, from: tickDateTime),
868 | month: calendar.component(.month, from: tickDateTime),
| `- error: cannot infer contextual base in reference to member 'month'
869 | day: calendar.component(.day, from: uniformDateTime),
870 | hour: calendar.component(.hour, from: uniformDateTime),
/host/spi-builder-workspace/Sources/Chart/Chart.swift:869:33: error: cannot infer contextual base in reference to member 'day'
867 | year: calendar.component(.year, from: tickDateTime),
868 | month: calendar.component(.month, from: tickDateTime),
869 | day: calendar.component(.day, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'day'
870 | hour: calendar.component(.hour, from: uniformDateTime),
871 | minute: calendar.component(.minute, from: uniformDateTime),
/host/spi-builder-workspace/Sources/Chart/Chart.swift:870:34: error: cannot infer contextual base in reference to member 'hour'
868 | month: calendar.component(.month, from: tickDateTime),
869 | day: calendar.component(.day, from: uniformDateTime),
870 | hour: calendar.component(.hour, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'hour'
871 | minute: calendar.component(.minute, from: uniformDateTime),
872 | second: calendar.component(.second, from: uniformDateTime)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:871:36: error: cannot infer contextual base in reference to member 'minute'
869 | day: calendar.component(.day, from: uniformDateTime),
870 | hour: calendar.component(.hour, from: uniformDateTime),
871 | minute: calendar.component(.minute, from: uniformDateTime),
| `- error: cannot infer contextual base in reference to member 'minute'
872 | second: calendar.component(.second, from: uniformDateTime)
873 | ))!
/host/spi-builder-workspace/Sources/Chart/Chart.swift:872:36: error: cannot infer contextual base in reference to member 'second'
870 | hour: calendar.component(.hour, from: uniformDateTime),
871 | minute: calendar.component(.minute, from: uniformDateTime),
872 | second: calendar.component(.second, from: uniformDateTime)
| `- error: cannot infer contextual base in reference to member 'second'
873 | ))!
874 | result[i] = Chart.dateTimeToKey(date: tickDateTime)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:936:27: error: cannot find type 'UIPanGestureRecognizer' in scope
934 |
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
936 | if gestureRecognizer is UIPanGestureRecognizer && otherGestureRecognizer is UISwipeGestureRecognizer {
| `- error: cannot find type 'UIPanGestureRecognizer' in scope
937 | let swipeGestureRecognizer = otherGestureRecognizer as! UISwipeGestureRecognizer
938 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:936:79: error: cannot find type 'UISwipeGestureRecognizer' in scope
934 |
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
936 | if gestureRecognizer is UIPanGestureRecognizer && otherGestureRecognizer is UISwipeGestureRecognizer {
| `- error: cannot find type 'UISwipeGestureRecognizer' in scope
937 | let swipeGestureRecognizer = otherGestureRecognizer as! UISwipeGestureRecognizer
938 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:937:60: error: cannot find type 'UISwipeGestureRecognizer' in scope
935 | public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
936 | if gestureRecognizer is UIPanGestureRecognizer && otherGestureRecognizer is UISwipeGestureRecognizer {
937 | let swipeGestureRecognizer = otherGestureRecognizer as! UISwipeGestureRecognizer
| `- error: cannot find type 'UISwipeGestureRecognizer' in scope
938 |
939 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:959:12: error: cannot find type 'CGFloat' in scope
957 |
958 | func CGColorFromRGB(rgbValue: Int32) -> CGColor {
959 | let red : CGFloat = ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0
| `- error: cannot find type 'CGFloat' in scope
960 | let green : CGFloat = ((CGFloat)((rgbValue & 0x00FF00) >> 8)) / 255.0
961 | let blue : CGFloat = ((CGFloat)((rgbValue & 0x00FF) >> 0)) / 255.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:959:24: error: cannot find 'CGFloat' in scope
957 |
958 | func CGColorFromRGB(rgbValue: Int32) -> CGColor {
959 | let red : CGFloat = ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0
| `- error: cannot find 'CGFloat' in scope
960 | let green : CGFloat = ((CGFloat)((rgbValue & 0x00FF00) >> 8)) / 255.0
961 | let blue : CGFloat = ((CGFloat)((rgbValue & 0x00FF) >> 0)) / 255.0
/host/spi-builder-workspace/Sources/Chart/Chart.swift:960:14: error: cannot find type 'CGFloat' in scope
958 | func CGColorFromRGB(rgbValue: Int32) -> CGColor {
959 | let red : CGFloat = ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0
960 | let green : CGFloat = ((CGFloat)((rgbValue & 0x00FF00) >> 8)) / 255.0
| `- error: cannot find type 'CGFloat' in scope
961 | let blue : CGFloat = ((CGFloat)((rgbValue & 0x00FF) >> 0)) / 255.0
962 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:960:26: error: cannot find 'CGFloat' in scope
958 | func CGColorFromRGB(rgbValue: Int32) -> CGColor {
959 | let red : CGFloat = ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0
960 | let green : CGFloat = ((CGFloat)((rgbValue & 0x00FF00) >> 8)) / 255.0
| `- error: cannot find 'CGFloat' in scope
961 | let blue : CGFloat = ((CGFloat)((rgbValue & 0x00FF) >> 0)) / 255.0
962 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:961:13: error: cannot find type 'CGFloat' in scope
959 | let red : CGFloat = ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0
960 | let green : CGFloat = ((CGFloat)((rgbValue & 0x00FF00) >> 8)) / 255.0
961 | let blue : CGFloat = ((CGFloat)((rgbValue & 0x00FF) >> 0)) / 255.0
| `- error: cannot find type 'CGFloat' in scope
962 |
963 | return CGColor(red: red, green: green, blue: blue, alpha: 1.0)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:961:25: error: cannot find 'CGFloat' in scope
959 | let red : CGFloat = ((CGFloat)((rgbValue & 0xFF0000) >> 16)) / 255.0
960 | let green : CGFloat = ((CGFloat)((rgbValue & 0x00FF00) >> 8)) / 255.0
961 | let blue : CGFloat = ((CGFloat)((rgbValue & 0x00FF) >> 0)) / 255.0
| `- error: cannot find 'CGFloat' in scope
962 |
963 | return CGColor(red: red, green: green, blue: blue, alpha: 1.0)
/host/spi-builder-workspace/Sources/Chart/Chart.swift:963:9: error: cannot find 'CGColor' in scope
961 | let blue : CGFloat = ((CGFloat)((rgbValue & 0x00FF) >> 0)) / 255.0
962 |
963 | return CGColor(red: red, green: green, blue: blue, alpha: 1.0)
| `- error: cannot find 'CGColor' in scope
964 | }
965 |
/host/spi-builder-workspace/Sources/Chart/Chart.swift:953:32: error: cannot find type 'Date' in scope
951 |
952 | extension Date {
953 | func addMonth(months: Int) -> Date? {
| `- error: cannot find type 'Date' in scope
954 | return Calendar.current.date(byAdding: .month, value: months, to: self)
955 | }
BUILD FAILURE 6.3 android