Skip to content

Commit e6d5935

Browse files
committed
removed option for group chat
1 parent 1a5ef5a commit e6d5935

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

messagingapp.xcodeproj/xcuserdata/nilesh.xcuserdatad/xcschemes/xcschememanagement.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>messagingapp.xcscheme</key>
88
<dict>
99
<key>orderHint</key>
10-
<integer>0</integer>
10+
<integer>1</integer>
1111
</dict>
1212
</dict>
1313
</dict>

messagingapp/Home/Constant.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ let objHomeSideSB = UIStoryboard(name: "HomeSideSB",bundle:nil)
2828

2929
let objContactSB = UIStoryboard(name: "ContactSB",bundle:nil)
3030

31-
let objGroupSB = UIStoryboard(name: "GroupMenuSB", bundle: nil)
31+
//let objGroupSB = UIStoryboard(name: "GroupMenuSB", bundle: nil)

messagingapp/ViewController/SideMenu/Home/ChatSB.storyboard

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
99
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
1010
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
1111
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@@ -58,6 +58,7 @@
5858
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="vuq-hv-Dry">
5959
<rect key="frame" x="0.0" y="20" width="375" height="607"/>
6060
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
61+
<color key="separatorColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
6162
<prototypes>
6263
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="Cell" id="GpA-zt-uxD" customClass="ChatTableViewCell" customModule="messagingapp" customModuleProvider="target">
6364
<rect key="frame" x="0.0" y="28" width="375" height="44"/>

messagingapp/ViewController/SideMenu/Home/ProfileVC.swift

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Firebase
1111

1212
class ProfileVC : UIViewController{
1313

14-
var items = ["Home","Contact","Chat", "Groups", "Profile", "Logout"]
14+
var items = ["Home","Contact","Chat", "Profile", "Logout"]
1515

1616
var arrImg = [UIImage(named: "Home"),UIImage(named: "Contact"), UIImage(named: "Chat"), UIImage(named: "Group"), UIImage(named: "Profile"), UIImage(named: "Logout")]
1717

@@ -69,23 +69,23 @@ extension ProfileVC: UITableViewDelegate,UITableViewDataSource {
6969
appDelegate.objSideMenu.centerViewController = navMain
7070
appDelegate.showSideMenu()
7171
}
72+
// else if indexPath.row == 3
73+
// {
74+
// let appDelegate = UIApplication.shared.delegate as! AppDelegate
75+
// let navMain = objGroupSB.instantiateViewController(withIdentifier: "navGroup") as! UINavigationController
76+
// appDelegate.objSideMenu.centerViewController = navMain
77+
// appDelegate.showSideMenu()
78+
//
79+
// }
7280
else if indexPath.row == 3
73-
{
74-
let appDelegate = UIApplication.shared.delegate as! AppDelegate
75-
let navMain = objGroupSB.instantiateViewController(withIdentifier: "navGroup") as! UINavigationController
76-
appDelegate.objSideMenu.centerViewController = navMain
77-
appDelegate.showSideMenu()
78-
79-
}
80-
else if indexPath.row == 4
8181
{
8282
let appDelegate = UIApplication.shared.delegate as! AppDelegate
8383
let navMain = objProfileDetailSB.instantiateViewController(withIdentifier: "navDetail") as! UINavigationController
8484

8585
appDelegate.objSideMenu.centerViewController = navMain
8686
appDelegate.showSideMenu()
8787
}
88-
else if indexPath.row == 5 {
88+
else if indexPath.row == 4 {
8989
try! Auth.auth().signOut()
9090
let appDelegate = UIApplication.shared.delegate as! AppDelegate
9191
appDelegate.logOutSuccess()

0 commit comments

Comments
 (0)