Browse Source

autodebit hidden

pull/1/head
gme_2 6 years ago
parent
commit
c47d6158f0
  1. 12
      GMERemittance/SideMenu/SideMenu.storyboard
  2. 6
      GMERemittance/SideMenu/SideMenuViewController.swift

12
GMERemittance/SideMenu/SideMenu.storyboard

@ -179,10 +179,10 @@
</connections> </connections>
</button> </button>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="BLa-d5-Z4p"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="BLa-d5-Z4p">
<rect key="frame" x="35" y="267.5" width="334" height="192"/>
<rect key="frame" x="35" y="267.5" width="334" height="141.5"/>
<subviews> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="hGN-h7-THC">
<rect key="frame" x="0.0" y="0.0" width="334" height="40.5"/>
<stackView hidden="YES" opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="hGN-h7-THC">
<rect key="frame" x="0.0" y="-40.5" width="334" height="40.5"/>
<subviews> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="gqh-Wo-OTx"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="gqh-Wo-OTx">
<rect key="frame" x="0.0" y="0.0" width="334" height="30"/> <rect key="frame" x="0.0" y="0.0" width="334" height="30"/>
@ -248,7 +248,7 @@
</subviews> </subviews>
</stackView> </stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="zdy-H8-A2J"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="zdy-H8-A2J">
<rect key="frame" x="0.0" y="50.5" width="334" height="40.5"/>
<rect key="frame" x="0.0" y="0.0" width="334" height="40.5"/>
<subviews> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="U66-8T-d5v"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="U66-8T-d5v">
<rect key="frame" x="0.0" y="0.0" width="334" height="30"/> <rect key="frame" x="0.0" y="0.0" width="334" height="30"/>
@ -317,7 +317,7 @@
</subviews> </subviews>
</stackView> </stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="4oZ-AQ-PlP"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="4oZ-AQ-PlP">
<rect key="frame" x="0.0" y="101" width="334" height="40.5"/>
<rect key="frame" x="0.0" y="50.5" width="334" height="40.5"/>
<subviews> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="hvx-jf-gk8"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="hvx-jf-gk8">
<rect key="frame" x="0.0" y="0.0" width="334" height="30"/> <rect key="frame" x="0.0" y="0.0" width="334" height="30"/>
@ -386,7 +386,7 @@
</subviews> </subviews>
</stackView> </stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="giG-3U-czb"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="giG-3U-czb">
<rect key="frame" x="0.0" y="151.5" width="334" height="40.5"/>
<rect key="frame" x="0.0" y="101" width="334" height="40.5"/>
<subviews> <subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="hRu-NW-e6e"> <stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="hRu-NW-e6e">
<rect key="frame" x="0.0" y="0.0" width="334" height="30"/> <rect key="frame" x="0.0" y="0.0" width="334" height="30"/>

6
GMERemittance/SideMenu/SideMenuViewController.swift

@ -91,7 +91,8 @@ class SideMenuViewController: UIViewController {
let shouldShowWithdrawButton = Utility.pennyTestVerified() && Utility.isVerifiedUser() let shouldShowWithdrawButton = Utility.pennyTestVerified() && Utility.isVerifiedUser()
self.withdrawButton.isHidden = !shouldShowWithdrawButton self.withdrawButton.isHidden = !shouldShowWithdrawButton
self.manageAccountStackView.isHidden = !shouldShowWithdrawButton
// self.manageAccountStackView.isHidden = !shouldShowWithdrawButton
self.manageAccountStackView.isHidden = true
self.view.backgroundColor = AppConstants.themeRedColor self.view.backgroundColor = AppConstants.themeRedColor
self.roundedBgView.layer.cornerRadius = 20 self.roundedBgView.layer.cornerRadius = 20
@ -115,7 +116,8 @@ class SideMenuViewController: UIViewController {
self.labelBalance.text = balance self.labelBalance.text = balance
let shouldShowWithdrawButton = Utility.pennyTestVerified() && Utility.isVerifiedUser() let shouldShowWithdrawButton = Utility.pennyTestVerified() && Utility.isVerifiedUser()
self.withdrawButton.isHidden = !shouldShowWithdrawButton self.withdrawButton.isHidden = !shouldShowWithdrawButton
self.manageAccountStackView.isHidden = !shouldShowWithdrawButton
// self.manageAccountStackView.isHidden = !shouldShowWithdrawButton
self.manageAccountStackView.isHidden = true
} }
private func setupBlueBackGroundTheme() { private func setupBlueBackGroundTheme() {

Loading…
Cancel
Save