Configured colours and added additional images to ready app for iOS 13 dark mode

This commit is contained in:
Deniz Duezgoeren
2019-10-08 21:37:42 +02:00
parent b7bc097664
commit 85efe3955d
310 changed files with 6512 additions and 4492 deletions
+4 -4
View File
@@ -37,7 +37,7 @@ class MenuViewController : UICollectionViewController, UICollectionViewDelegateM
collectionView.register(UINib(nibName: "MenuViewCell", bundle: nil), forCellWithReuseIdentifier: identifier)
collectionView.dataSource = self
collectionView.delegate = self
collectionView.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
collectionView.backgroundColor = UIColor(named: "colorBackground")
if #available(iOS 10.0, *) {
collectionView.refreshControl = refreshControl
@@ -65,9 +65,9 @@ class MenuViewController : UICollectionViewController, UICollectionViewDelegateM
df.doAsync(do: "menu") { menuItems in
self.items = menuItems as! [String]
UIView.performWithoutAnimation {
// UIView.performWithoutAnimation {
self.collectionView.reloadData()
}
// }
self.refreshControl.endRefreshing()
self.df.setTabBarBadge(for: self.tabBarController?.tabBar.items)
@@ -88,7 +88,7 @@ class MenuViewController : UICollectionViewController, UICollectionViewDelegateM
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: identifier, for: indexPath as IndexPath) as! MenuViewCell
cell.content.text = self.items[indexPath.item]
cell.tintView.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
cell.tintView.backgroundColor = UIColor(named: "colorDefault")
let layer = cell.tintView.layer
df.setCardFormatting(for: layer)
return cell