             
             print("Trying to put received data in the UI...")
             
-            self.removeAllOverlays()
+            SwiftOverlays.removeAllBlockingOverlays()
             
             //Checks for empty array and shows error message in case someting went wrong
             if weatherConditions.isEmpty {

import UIKit
import SwiftOverlays

class WeatherViewController: UIViewController {

    let apiManager = APIManager()
    
    @IBOutlet weak var day0: WeatherConditionView!

        bar.shadowImage = UIImage()
        bar.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0)
        bar.barStyle = .BlackTranslucent
        
        //Adds a GestureRecognizer to WeatherConditionViews
        for i in 0...5 { days[i].addGestureRecognizer(UITapGestureRecognizer(target: self, action: Selector("day\(i)Pressed"))) }
        
    }
    
    //Functions that are called by the TapGestureRecognizers (bad practice; find a better way?)
    func day0Pressed() { dayPressed(0) }
    func day1Pressed() { dayPressed(1) }
    func day2Pressed() { dayPressed(2) }
    func day3Pressed() { dayPressed(3) }
    func day4Pressed() { dayPressed(4) }
    func day5Pressed() { dayPressed(5) }
    
    //Calls the DetailWeatherViewController with the WeatherCondition as sender
    func dayPressed(number:Int) {
        print("WeatherConditionView \(number) pressed!")
        performSegueWithIdentifier("showDetail", sender: days[number].weatherCondition)
    }
    
    //Sets the weatherCondition of the DetailWeatherViewController to the pressed one
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        if segue.identifier == "showDetail" {
            
            let destinationNavController = segue.destinationViewController as! UINavigationController
            let detailWeatherViewController = destinationNavController.viewControllers.first as! DetailWeatherViewController
            let weatherView = detailWeatherViewController.view as! WeatherConditionView
            
            weatherView.weatherCondition = sender as? WeatherCondition
            
        }
    }
    
    //Refreshes the Data/UI
    func refresh() {
        
