IOS-328 animation on the folder select
authorXavier Algarra <xavier@pep-project.org>
Thu, 20 Apr 2017 17:31:40 +0200
changeset 2041eaac91f98aab
parent 2040 48f5e39c45a7
child 2042 5819b5d16e6e
IOS-328 animation on the folder select
pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
pEpForiOS/UI/Folder/FolderTableViewController.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Thu Apr 20 16:27:03 2017 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Thu Apr 20 17:31:40 2017 +0200
     1.3 @@ -73,6 +73,8 @@
     1.4  
     1.5          if config == nil {
     1.6              config = EmailListConfig(appConfig: appDelegate.appConfig, folder: Folder.unifiedInbox())
     1.7 +        } else if config?.folder != nil {
     1.8 +
     1.9          }
    1.10          if Account.all().isEmpty {
    1.11              performSegue(withIdentifier:.segueAddNewAccount, sender: self)
     2.1 --- a/pEpForiOS/UI/Folder/FolderTableViewController.swift	Thu Apr 20 16:27:03 2017 +0200
     2.2 +++ b/pEpForiOS/UI/Folder/FolderTableViewController.swift	Thu Apr 20 17:31:40 2017 +0200
     2.3 @@ -78,7 +78,7 @@
     2.4          if let vc = sb.instantiateViewController(withIdentifier: "EmailListViewController") as? EmailListViewController {
     2.5              let config = EmailListConfig(appConfig: appConfig, folder: folderVM[indexPath.section][indexPath.row].getFolder())
     2.6              vc.config = config
     2.7 -            self.navigationController?.pushViewController(vc, animated: false)
     2.8 +            self.navigationController?.pushViewController(vc, animated: true)
     2.9          }
    2.10      }
    2.11