From 1c012fa01d57778c7c3cf48a14e68506491c3abf Mon Sep 17 00:00:00 2001 From: Raj Abishek Date: Tue, 15 Mar 2016 19:35:51 +0530 Subject: [PATCH] Sets the colour of pull to refresh label as white, as its not visible in the black background. --- SwiftRadio/StationsViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftRadio/StationsViewController.swift b/SwiftRadio/StationsViewController.swift index 5058d5cb..80f04730 100755 --- a/SwiftRadio/StationsViewController.swift +++ b/SwiftRadio/StationsViewController.swift @@ -121,7 +121,7 @@ class StationsViewController: UIViewController { func setupPullToRefresh() { self.refreshControl = UIRefreshControl() - self.refreshControl.attributedTitle = NSAttributedString(string: "Pull to refresh") + self.refreshControl.attributedTitle = NSAttributedString(string: "Pull to refresh", attributes: [NSForegroundColorAttributeName:UIColor.whiteColor()]) self.refreshControl.backgroundColor = UIColor.blackColor() self.refreshControl.tintColor = UIColor.whiteColor() self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)