Browse Source

enamed to _homeviewcontroller

pull/1/head
gme_2 6 years ago
parent
commit
354cae1722
  1. 22
      GMERemittance.xcodeproj/project.pbxproj
  2. 2
      GMERemittance/AppDelegate.swift
  3. 2
      GMERemittance/Extension/UIViewControllerExtension.swift
  4. 2
      GMERemittance/Module/Login/User Interface/Wireframe/LoginWireframe.swift
  5. 2
      GMERemittance/Module/Main/User Interface/Wireframe/MainWireframe.swift
  6. 2
      GMERemittance/Reward/RedeemViewController.swift
  7. 4
      GMERemittance/Social/MyStoryViewController.swift
  8. 0
      GMERemittance/_Home/AboutGMEViewController.swift
  9. 0
      GMERemittance/_Home/HomeCellModel.swift
  10. 0
      GMERemittance/_Home/HomeViewModel.swift
  11. 0
      GMERemittance/_Home/LoadBalanceViewController.swift
  12. 0
      GMERemittance/_Home/PayoutTableViewCell.swift
  13. 0
      GMERemittance/_Home/PayoutViewController.swift
  14. 0
      GMERemittance/_Home/TableViewCell.swift
  15. 0
      GMERemittance/_Home/TransactionCollectionViewCell.swift
  16. 0
      GMERemittance/_Home/UploadImageViewModel.swift
  17. 53
      GMERemittance/_Home/_Home.storyboard
  18. 26
      GMERemittance/_Home/_HomeViewController.swift

22
GMERemittance.xcodeproj/project.pbxproj

@ -115,7 +115,7 @@
5565FF311FE275E5002934E9 /* SanFranciscoDisplay-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = 5565FF1B1FE275E0002934E9 /* SanFranciscoDisplay-Medium.otf */; };
5565FF321FE275E5002934E9 /* SanFranciscoDisplay-Semibold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 5565FF1C1FE275E0002934E9 /* SanFranciscoDisplay-Semibold.otf */; };
5565FF341FE29791002934E9 /* TableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5565FF331FE29791002934E9 /* TableViewCell.swift */; };
55A1FBAB1FDE4A3F00E8D94D /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55A1FBAA1FDE4A3F00E8D94D /* HomeViewController.swift */; };
55A1FBAB1FDE4A3F00E8D94D /* _HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55A1FBAA1FDE4A3F00E8D94D /* _HomeViewController.swift */; };
55A1FBAD1FDE4D7D00E8D94D /* TransactionCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55A1FBAC1FDE4D7D00E8D94D /* TransactionCollectionViewCell.swift */; };
722347F0205A39D500296ADD /* SocialFeed.swift in Sources */ = {isa = PBXBuildFile; fileRef = 722347EF205A39D500296ADD /* SocialFeed.swift */; };
722347F2205A8FF600296ADD /* SocialFeedViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 722347F1205A8FF600296ADD /* SocialFeedViewModel.swift */; };
@ -151,7 +151,7 @@
9F9DF0CC1FEBC141005B8F42 /* RecipientListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F9DF0CB1FEBC141005B8F42 /* RecipientListViewController.swift */; };
9F9DF0CE1FEBCD41005B8F42 /* RecipientListTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F9DF0CD1FEBCD41005B8F42 /* RecipientListTableViewCell.swift */; };
9FA00FBE1FEE69AF0049753E /* UIViewExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FA00FBD1FEE69AF0049753E /* UIViewExtension.swift */; };
9FA0973A200E0DE100F3B5EC /* Home.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9FA09739200E0DE100F3B5EC /* Home.storyboard */; };
9FA0973A200E0DE100F3B5EC /* _Home.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9FA09739200E0DE100F3B5EC /* _Home.storyboard */; };
9FA0973C200E126300F3B5EC /* StatusUploadViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FA0973B200E126300F3B5EC /* StatusUploadViewController.swift */; };
9FA0973E200E127A00F3B5EC /* LikesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FA0973D200E127A00F3B5EC /* LikesViewController.swift */; };
9FA09740200E129500F3B5EC /* CommentsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FA0973F200E129500F3B5EC /* CommentsViewController.swift */; };
@ -611,7 +611,7 @@
5565FF1B1FE275E0002934E9 /* SanFranciscoDisplay-Medium.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "SanFranciscoDisplay-Medium.otf"; sourceTree = "<group>"; };
5565FF1C1FE275E0002934E9 /* SanFranciscoDisplay-Semibold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "SanFranciscoDisplay-Semibold.otf"; sourceTree = "<group>"; };
5565FF331FE29791002934E9 /* TableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TableViewCell.swift; sourceTree = "<group>"; };
55A1FBAA1FDE4A3F00E8D94D /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = "<group>"; };
55A1FBAA1FDE4A3F00E8D94D /* _HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = _HomeViewController.swift; sourceTree = "<group>"; };
55A1FBAC1FDE4D7D00E8D94D /* TransactionCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionCollectionViewCell.swift; sourceTree = "<group>"; };
722347EF205A39D500296ADD /* SocialFeed.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SocialFeed.swift; sourceTree = "<group>"; };
722347F1205A8FF600296ADD /* SocialFeedViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SocialFeedViewModel.swift; sourceTree = "<group>"; };
@ -648,7 +648,7 @@
9F9DF0CB1FEBC141005B8F42 /* RecipientListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecipientListViewController.swift; sourceTree = "<group>"; };
9F9DF0CD1FEBCD41005B8F42 /* RecipientListTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecipientListTableViewCell.swift; sourceTree = "<group>"; };
9FA00FBD1FEE69AF0049753E /* UIViewExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIViewExtension.swift; sourceTree = "<group>"; };
9FA09739200E0DE100F3B5EC /* Home.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Home.storyboard; sourceTree = "<group>"; };
9FA09739200E0DE100F3B5EC /* _Home.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = _Home.storyboard; sourceTree = "<group>"; };
9FA0973B200E126300F3B5EC /* StatusUploadViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusUploadViewController.swift; sourceTree = "<group>"; };
9FA0973D200E127A00F3B5EC /* LikesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LikesViewController.swift; sourceTree = "<group>"; };
9FA0973F200E129500F3B5EC /* CommentsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CommentsViewController.swift; sourceTree = "<group>"; };
@ -1254,11 +1254,11 @@
path = "SanFranciscoFont-master";
sourceTree = "<group>";
};
55A1FBA91FDE4A1100E8D94D /* Home */ = {
55A1FBA91FDE4A1100E8D94D /* _Home */ = {
isa = PBXGroup;
children = (
9FA09739200E0DE100F3B5EC /* Home.storyboard */,
55A1FBAA1FDE4A3F00E8D94D /* HomeViewController.swift */,
9FA09739200E0DE100F3B5EC /* _Home.storyboard */,
55A1FBAA1FDE4A3F00E8D94D /* _HomeViewController.swift */,
A254025C205F8C78001ED0DF /* HomeCellModel.swift */,
A24B44FB204D158F009BF491 /* HomeViewModel.swift */,
55A1FBAC1FDE4D7D00E8D94D /* TransactionCollectionViewCell.swift */,
@ -1268,7 +1268,7 @@
9F2E0D152059168C008611D1 /* LoadBalanceViewController.swift */,
04CD5394208F0765008F0971 /* UploadImageViewModel.swift */,
);
path = Home;
path = _Home;
sourceTree = "<group>";
};
55FEA60C1FD00D0B00645675 /* SignUp */ = {
@ -1405,7 +1405,7 @@
0496B8501FE7DFD00044810E /* enum */,
0496B8511FE7DFDD0044810E /* Extension */,
722347EC205A395F00296ADD /* Social */,
55A1FBA91FDE4A1100E8D94D /* Home */,
55A1FBA91FDE4A1100E8D94D /* _Home */,
042E6EFB203EAE3A004667A1 /* SideMenu */,
04F6C2E6201079F300C59431 /* Payment */,
9F9DF0CA1FEBC0A0005B8F42 /* Recipient */,
@ -3482,7 +3482,7 @@
5565FF321FE275E5002934E9 /* SanFranciscoDisplay-Semibold.otf in Resources */,
9FB54C11200879B9003454E2 /* Profile.storyboard in Resources */,
9F3ADCEA2004B8EC0037A3A3 /* ProfileEdit.storyboard in Resources */,
9FA0973A200E0DE100F3B5EC /* Home.storyboard in Resources */,
9FA0973A200E0DE100F3B5EC /* _Home.storyboard in Resources */,
5565FF211FE275E5002934E9 /* SanFranciscoText-Bold.otf in Resources */,
04EA4DB12026CD0E00BF6BED /* TrackTransfer.storyboard in Resources */,
5565FF281FE275E5002934E9 /* SanFranciscoDisplay-Regular.otf in Resources */,
@ -4115,7 +4115,7 @@
043BE857204CF10B00221D12 /* MoneyRequestViewModel.swift in Sources */,
D96A4FFC2146625C00CFD507 /* RegisterWireframeInput.swift in Sources */,
041AEAD01FF5EECE004FEF06 /* PopUpSavingViewController.swift in Sources */,
55A1FBAB1FDE4A3F00E8D94D /* HomeViewController.swift in Sources */,
55A1FBAB1FDE4A3F00E8D94D /* _HomeViewController.swift in Sources */,
D96A4FFD2146625C00CFD507 /* RegisterWireframe.swift in Sources */,
0496B8471FE7DFA20044810E /* Box.swift in Sources */,
042E7F2A2010E908006A5176 /* Cdd.swift in Sources */,

2
GMERemittance/AppDelegate.swift

@ -80,7 +80,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
// self.window?.rootViewController =
let tabBarViewController = mainWireFrame?.getMainView()
let sidemenuVc = UIStoryboard(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "SideMenuViewController") as! SideMenuViewController
let sidemenuVc = UIStoryboard(name: "_Home", bundle: nil).instantiateViewController(withIdentifier: "SideMenuViewController") as! SideMenuViewController
//
let sideMenuController = LGSideMenuController(rootViewController: tabBarViewController, leftViewController: sidemenuVc, rightViewController: nil)
//

2
GMERemittance/Extension/UIViewControllerExtension.swift

@ -473,7 +473,7 @@ extension UIViewController {
let storyboard = UIStoryboard.init(name: "Main", bundle: Bundle.main)
if let tabViewController = storyboard.instantiateViewController(withIdentifier: "TabBarController") as? UITabBarController {
let destinationViewController = tabViewController.viewControllers![0] as! HomeViewController
let destinationViewController = tabViewController.viewControllers![0] as! _HomeViewController
destinationViewController.numberCellsInCollectionView = 6
destinationViewController.showAllCollectionViewCells = true

2
GMERemittance/Module/Login/User Interface/Wireframe/LoginWireframe.swift

@ -39,7 +39,7 @@ extension LoginWireframe: LoginWireframeInput {
}
func dashBoard() {
let sidemenuVc = UIStoryboard(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "SideMenuViewController") as! SideMenuViewController
let sidemenuVc = UIStoryboard(name: "_Home", bundle: nil).instantiateViewController(withIdentifier: "SideMenuViewController") as! SideMenuViewController
//
let mainWireFrame = MainWireframe.shared
// self.window?.rootViewController =

2
GMERemittance/Module/Main/User Interface/Wireframe/MainWireframe.swift

@ -36,7 +36,7 @@ extension MainWireframe: MainWireframeInput {
// home view controller
let homeViewController = UIStoryboard.init(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "Home") as! HomeViewController
let homeViewController = UIStoryboard.init(name: "_Home", bundle: nil).instantiateViewController(withIdentifier: "Home") as! _HomeViewController
let navHomeViewController = UINavigationController(rootViewController: homeViewController)
// user send money view controller

2
GMERemittance/Reward/RedeemViewController.swift

@ -175,7 +175,7 @@ class RedeemViewController: UIViewController {
}
func viewAgentLocation() {
let storyboard = UIStoryboard.init(name: "Home", bundle: Bundle.main)
let storyboard = UIStoryboard.init(name: "_Home", bundle: Bundle.main)
if let agentViewController = storyboard.instantiateViewController(withIdentifier: "PayoutViewController") as? PayoutViewController {
//agentViewController.fromReward = 0
self.navigationController!.pushViewController(agentViewController, animated: true)

4
GMERemittance/Social/MyStoryViewController.swift

@ -344,7 +344,7 @@ class MyStoryViewController: UIViewController, UITableViewDelegate, UITableViewD
let supportEmail = UIAlertAction(title: "support@gmeremit.com", style: .default) {
UIAlertAction in
let storyboard = UIStoryboard.init(name: "Home", bundle: Bundle.main)
let storyboard = UIStoryboard.init(name: "_Home", bundle: Bundle.main)
if let messageViewController = storyboard.instantiateViewController(withIdentifier: "message") as? MessageComposeViewController {
messageViewController.supportIndex = 0
self.navigationController!.pushViewController(messageViewController, animated: true)
@ -882,7 +882,7 @@ class MyStoryViewController: UIViewController, UITableViewDelegate, UITableViewD
commentsViewController.tappedIndex = tappedIndex
case "showMoreOptions2"?:
let homeViewController = segue.destination as! HomeViewController
let homeViewController = segue.destination as! _HomeViewController
homeViewController.numberCellsInCollectionView = 6
homeViewController.showAllCollectionViewCells = true

0
GMERemittance/Home/AboutGMEViewController.swift → GMERemittance/_Home/AboutGMEViewController.swift

0
GMERemittance/Home/HomeCellModel.swift → GMERemittance/_Home/HomeCellModel.swift

0
GMERemittance/Home/HomeViewModel.swift → GMERemittance/_Home/HomeViewModel.swift

0
GMERemittance/Home/LoadBalanceViewController.swift → GMERemittance/_Home/LoadBalanceViewController.swift

0
GMERemittance/Home/PayoutTableViewCell.swift → GMERemittance/_Home/PayoutTableViewCell.swift

0
GMERemittance/Home/PayoutViewController.swift → GMERemittance/_Home/PayoutViewController.swift

0
GMERemittance/Home/TableViewCell.swift → GMERemittance/_Home/TableViewCell.swift

0
GMERemittance/Home/TransactionCollectionViewCell.swift → GMERemittance/_Home/TransactionCollectionViewCell.swift

0
GMERemittance/Home/UploadImageViewModel.swift → GMERemittance/_Home/UploadImageViewModel.swift

53
GMERemittance/Home/Home.storyboard → GMERemittance/_Home/_Home.storyboard

@ -32,7 +32,7 @@
<!--Home-->
<scene sceneID="jyd-DT-MI8">
<objects>
<viewController storyboardIdentifier="Home" id="8fJ-Pa-ik8" customClass="HomeViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="Home" id="8fJ-Pa-ik8" customClass="_HomeViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="q0w-d9-a5Y">
<rect key="frame" x="0.0" y="0.0" width="375" height="1300"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@ -1155,7 +1155,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="44.5"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7wo-T4-XhL">
<rect key="frame" x="155.5" y="8.5" width="63" height="29"/>
<rect key="frame" x="155.5" y="8" width="63" height="29"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/>
<state key="normal" title="Load More"/>
<connections>
@ -1244,6 +1244,55 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</customObject>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Rul-QX-Vgw">
<rect key="frame" x="0.0" y="0.0" width="375" height="100"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_home_verified" translatesAutoresizingMaskIntoConstraints="NO" id="BeY-cI-Dki">
<rect key="frame" x="24" y="14" width="67" height="72"/>
<constraints>
<constraint firstAttribute="height" constant="72" id="2Kd-lM-79J"/>
<constraint firstAttribute="width" constant="67" id="Wil-bU-U4K"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Thank you for registering with us!" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="q9A-OB-Loo">
<rect key="frame" x="103" y="20" width="182" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="fpm-Lw-JoA"/>
</constraints>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Bold" family="San Francisco Display" pointSize="12"/>
<color key="textColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Your document is in verification process. This will not take long. Thereafter you can enjoy GME online service." lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="emN-6w-3CW">
<rect key="frame" x="103" y="43" width="196" height="36"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="10"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bNN-PS-8gK">
<rect key="frame" x="319" y="30" width="40" height="40"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="Qdx-Wr-bGD"/>
<constraint firstAttribute="height" constant="40" id="nCp-zp-T8W"/>
</constraints>
<state key="normal" image="ic_home_payoutLocation"/>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="bNN-PS-8gK" secondAttribute="trailing" constant="16" id="G9E-ps-sgH"/>
<constraint firstItem="q9A-OB-Loo" firstAttribute="top" secondItem="Rul-QX-Vgw" secondAttribute="top" constant="20" id="GM3-Ch-BNU"/>
<constraint firstItem="bNN-PS-8gK" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="emN-6w-3CW" secondAttribute="trailing" constant="20" id="JWJ-cn-SCp"/>
<constraint firstItem="BeY-cI-Dki" firstAttribute="leading" secondItem="Rul-QX-Vgw" secondAttribute="leading" constant="24" id="N7U-qM-kU3"/>
<constraint firstItem="emN-6w-3CW" firstAttribute="leading" secondItem="BeY-cI-Dki" secondAttribute="trailing" constant="12" id="UaK-oS-fLQ"/>
<constraint firstAttribute="height" constant="100" id="c9i-Hw-HgR"/>
<constraint firstItem="q9A-OB-Loo" firstAttribute="leading" secondItem="BeY-cI-Dki" secondAttribute="trailing" constant="12" id="cwX-KF-SXb"/>
<constraint firstItem="emN-6w-3CW" firstAttribute="top" secondItem="q9A-OB-Loo" secondAttribute="bottom" constant="8" id="hhP-v3-fpL"/>
<constraint firstItem="bNN-PS-8gK" firstAttribute="top" secondItem="Rul-QX-Vgw" secondAttribute="top" constant="30" id="l1x-rj-UR7"/>
<constraint firstItem="BeY-cI-Dki" firstAttribute="top" secondItem="Rul-QX-Vgw" secondAttribute="top" constant="14" id="zXD-gL-xCc"/>
</constraints>
<viewLayoutGuide key="safeArea" id="efu-14-lx7"/>
</view>
</objects>
<point key="canvasLocation" x="2013.5999999999999" y="686.35682158920542"/>
</scene>

26
GMERemittance/Home/HomeViewController.swift → GMERemittance/_Home/_HomeViewController.swift

@ -13,7 +13,7 @@ import Social
import FacebookShare
import FBSDKShareKit
class HomeViewController: UIViewController, TableViewCellDelegate, FBSDKSharingDelegate {
class _HomeViewController: UIViewController, TableViewCellDelegate, FBSDKSharingDelegate {
enum TableViewCells: Int {
@ -289,7 +289,7 @@ class HomeViewController: UIViewController, TableViewCellDelegate, FBSDKSharing
let supportEmail = UIAlertAction(title: "support@gmeremit.com", style: .default) {
UIAlertAction in
let storyboard = UIStoryboard.init(name: "Home", bundle: Bundle.main)
let storyboard = UIStoryboard.init(name: "_Home", bundle: Bundle.main)
if let messageViewController = storyboard.instantiateViewController(withIdentifier: "message") as? MessageComposeViewController {
messageViewController.supportIndex = 0
self.navigationController!.pushViewController(messageViewController, animated: true)
@ -412,17 +412,17 @@ class HomeViewController: UIViewController, TableViewCellDelegate, FBSDKSharing
}
@objc private func showSideMenuAboutGme() {
let vc = UIStoryboard.init(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "AboutGMEViewController") as! AboutGMEViewController
let vc = UIStoryboard.init(name: "_Home", bundle: nil).instantiateViewController(withIdentifier: "AboutGMEViewController") as! AboutGMEViewController
self.navigationController?.pushViewController(vc, animated: true)
}
@objc private func showSideMenuSetting() {
let vc = UIStoryboard.init(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "SettingViewController") as! SettingViewController
let vc = UIStoryboard.init(name: "_Home", bundle: nil).instantiateViewController(withIdentifier: "SettingViewController") as! SettingViewController
self.navigationController?.pushViewController(vc, animated: true)
}
@objc private func showSideMenuSupport() {
let vc = UIStoryboard.init(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "SupportViewController") as! SupportViewController
let vc = UIStoryboard.init(name: "_Home", bundle: nil).instantiateViewController(withIdentifier: "SupportViewController") as! SupportViewController
self.navigationController?.pushViewController(vc, animated: true)
}
@ -467,7 +467,7 @@ class HomeViewController: UIViewController, TableViewCellDelegate, FBSDKSharing
*/
extension HomeViewController {
extension _HomeViewController {
//UPLOAD TEXT AS STATUS
@objc func uploadTextStatus(_ sender: TableViewCell) {
@ -573,7 +573,7 @@ extension HomeViewController {
@objc func loadBalanceTap(_ sender: TableViewCell) {
guard let navController = self.navigationController else { return }
let popUpViewController = UIStoryboard(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "loadBalance") as! LoadBalanceViewController
let popUpViewController = UIStoryboard(name: "_Home", bundle: nil).instantiateViewController(withIdentifier: "loadBalance") as! LoadBalanceViewController
navController.addChildViewController(popUpViewController)
popUpViewController.view.frame = navController.view.bounds
@ -589,7 +589,7 @@ extension HomeViewController {
}
@objc func agentTap(_ sender: TableViewCell) {
let storyboard = UIStoryboard.init(name: "Home", bundle: Bundle.main)
let storyboard = UIStoryboard.init(name: "_Home", bundle: Bundle.main)
let vController = storyboard.instantiateViewController(withIdentifier: "PayoutViewController") as! PayoutViewController
self.navigationController!.pushViewController(vController, animated: true)
@ -983,7 +983,7 @@ extension HomeViewController {
-----------------HANDLES THE SECTION HEIGHT IN TABLEVIEW------------
*/
extension HomeViewController: UIScrollViewDelegate {
extension _HomeViewController: UIScrollViewDelegate {
@IBAction func scrollToTop(_ sender: Any) {
tableView.scrollToRow(at: IndexPath(row:0, section: 0), at: UITableViewScrollPosition.top, animated: true)
@ -1070,7 +1070,7 @@ extension HomeViewController: UIScrollViewDelegate {
}
}
extension HomeViewController: UITableViewDelegate, UITableViewDataSource {
extension _HomeViewController: UITableViewDelegate, UITableViewDataSource {
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
@ -1251,7 +1251,7 @@ extension HomeViewController: UITableViewDelegate, UITableViewDataSource {
-----------------IMAGE DIALOG------------
-----------------GALLERY AND CAMERA ACTION------------*/
extension HomeViewController {
extension _HomeViewController {
func addUserProfileImage(){
@ -1318,7 +1318,7 @@ extension HomeViewController {
-----------------HANDLES IMAGE PICKING------------
-----------------HANDLES PICKING FROM CAMERA AND GALLERY------------*/
extension HomeViewController: UINavigationControllerDelegate, UIImagePickerControllerDelegate {
extension _HomeViewController: UINavigationControllerDelegate, UIImagePickerControllerDelegate {
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
@ -1342,7 +1342,7 @@ extension HomeViewController: UINavigationControllerDelegate, UIImagePickerContr
-----------------HANDLES COLLECTION VIEW MARGINS------------
-----------------HANDLES COLLECTION VIEW ITEMS DRAG------------*/
extension HomeViewController: UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
extension _HomeViewController: UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
Loading…
Cancel
Save