Bastian van de Wetering 7 роки тому
батько
коміт
f79d2317fe
1 змінених файлів з 9 додано та 3 видалено
  1. 9 3
      deltachat-ios/AppCoordinator.swift

+ 9 - 3
deltachat-ios/AppCoordinator.swift

@@ -21,9 +21,15 @@ class AppCoordinator {
         let settingsViewController = UIViewController()
         settingsViewController.view.backgroundColor = UIColor.blue
         
-        let contactTabbarItem = UITabBarItem(tabBarSystemItem: .contacts, tag: 0)
-        let chatTabbarItem = UITabBarItem(title: "Chats", image: nil, tag: 1)
-        let settingsTabbarItem = UITabBarItem(title: "Settings", image: nil, tag: 2)
+        
+        
+        let chatIcon = #imageLiteral(resourceName: "ic_chat_36pt").withRenderingMode(.alwaysTemplate)
+        let contactsIcon = #imageLiteral(resourceName: "ic_people_36pt").withRenderingMode(.alwaysTemplate)
+        let settingsIcon = #imageLiteral(resourceName: "ic_settings_36pt").withRenderingMode(.alwaysTemplate)
+        
+        let contactTabbarItem = UITabBarItem(title: "Contacts", image: contactsIcon, tag: 0)
+        let chatTabbarItem = UITabBarItem(title: "Chats", image: chatIcon, tag: 1)
+        let settingsTabbarItem = UITabBarItem(title: "Settings", image: settingsIcon, tag: 2)
         
         contactViewController.tabBarItem = contactTabbarItem
         chatNavigationController.tabBarItem = chatTabbarItem