//
//  Simple example usage of ScrollableGraphView.swift
//  #######################################
//

import UIKit

class GraphViewController: UIViewController {
    @IBOutlet var graphView: ScrollableGraphView?
    var data: [Double]?
    var labels: [String]?
    
    override func viewDidLoad() {
        super.viewDidLoad()

        guard let data = data, let labels = labels else {
            return
        }
        graphView?.setData(data, withLabels: labels)
    }

}

//
//  Simple example usage of ScrollableGraphView.swift
//  #######################################
//

import UIKit

class GraphViewController: UIViewController {
    @IBOutlet var graphView: ScrollableGraphView?
    var data: [Double]?
    var labels: [String]?
    
    override func viewDidLoad() {
        super.viewDidLoad()

        guard let data = data else {
            return
        }
        guard let labels = labels else {
            return
        }
        graphView?.setData(data, withLabels: labels)
    }

}

--- 
+++ 
@@ -13,10 +13,7 @@
     override func viewDidLoad() {
         super.viewDidLoad()
 
-        guard let data = data else {
-            return
-        }
-        guard let labels = labels else {
+        guard let data = data, let labels = labels else {
             return
         }
         graphView?.setData(data, withLabels: labels)
Use just one guard instead of 2 (in example project’s vc)