 
         self.deleteFilesSwitch.setOn(false, animated: false)
 
-        self.statusText.contentInset = UIEdgeInsetsMake(0, -self.statusText.textContainer.lineFragmentPadding, 0, -self.statusText.textContainer.lineFragmentPadding);
+        self.statusText.contentInset = UIEdgeInsets(top: 0, left: -self.statusText.textContainer.lineFragmentPadding, bottom: 0, right: -self.statusText.textContainer.lineFragmentPadding)
     }
 
     func checkAuthorization() {

        }
    }

    func updateStatus(status: String, count: Int = 0, total: Int = 0, percentage: Float = -1) {
        NSLog("Status change: " + status)



                self.updateStatus("Uploading complete successfully.")

                if self.deleteFilesSwitch.on {
                    self.deleteRemotePhotos(sftpSession!, filesToBeKept: filesToBeKept)
                }

                self.updateStatus("Disconnecting...")
