Browse Source

Message View in HomeViewController height managed

pull/11/head
yare 3 years ago
parent
commit
90552963db
  1. 10
      GME Remit/Modules/Home/User Interface/View/Home.storyboard
  2. 10
      GME Remit/Modules/Home/User Interface/View/HomeViewController.swift

10
GME Remit/Modules/Home/User Interface/View/Home.storyboard

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="ezt-uK-zb8">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="ezt-uK-zb8">
<device id="retina4_0" orientation="portrait" appearance="light"/> <device id="retina4_0" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19144"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
<capability name="Named colors" minToolsVersion="9.0"/> <capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@ -34,11 +34,10 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="alB-Pe-T92"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="alB-Pe-T92">
<rect key="frame" x="0.0" y="44" width="320" height="100"/> <rect key="frame" x="0.0" y="44" width="320" height="100"/>
<subviews> <subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Documents" translatesAutoresizingMaskIntoConstraints="NO" id="UD8-ap-8xD">
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Documents" translatesAutoresizingMaskIntoConstraints="NO" id="UD8-ap-8xD">
<rect key="frame" x="24" y="14" width="67" height="72"/> <rect key="frame" x="24" y="14" width="67" height="72"/>
<constraints> <constraints>
<constraint firstAttribute="width" constant="67" id="U8l-y5-E3I"/> <constraint firstAttribute="width" constant="67" id="U8l-y5-E3I"/>
<constraint firstAttribute="height" constant="72" id="sRu-sw-H5c"/>
</constraints> </constraints>
</imageView> </imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Thank you for registering with us!" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="pcY-xj-hQb"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Thank you for registering with us!" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="pcY-xj-hQb">
@ -65,6 +64,7 @@
<gestureRecognizers/> <gestureRecognizers/>
<constraints> <constraints>
<constraint firstAttribute="trailing" secondItem="rwJ-pQ-p9z" secondAttribute="trailing" constant="24" id="8QV-bU-6Uq"/> <constraint firstAttribute="trailing" secondItem="rwJ-pQ-p9z" secondAttribute="trailing" constant="24" id="8QV-bU-6Uq"/>
<constraint firstAttribute="bottom" secondItem="UD8-ap-8xD" secondAttribute="bottom" constant="14" id="8iF-KI-gHH"/>
<constraint firstItem="pcY-xj-hQb" firstAttribute="leading" secondItem="UD8-ap-8xD" secondAttribute="trailing" constant="12" id="9Cq-J8-5SO"/> <constraint firstItem="pcY-xj-hQb" firstAttribute="leading" secondItem="UD8-ap-8xD" secondAttribute="trailing" constant="12" id="9Cq-J8-5SO"/>
<constraint firstItem="UD8-ap-8xD" firstAttribute="top" secondItem="alB-Pe-T92" secondAttribute="top" constant="14" id="9lT-Dr-BKX"/> <constraint firstItem="UD8-ap-8xD" firstAttribute="top" secondItem="alB-Pe-T92" secondAttribute="top" constant="14" id="9lT-Dr-BKX"/>
<constraint firstItem="pcY-xj-hQb" firstAttribute="width" secondItem="rwJ-pQ-p9z" secondAttribute="width" id="Fy9-CI-vKc"/> <constraint firstItem="pcY-xj-hQb" firstAttribute="width" secondItem="rwJ-pQ-p9z" secondAttribute="width" id="Fy9-CI-vKc"/>
@ -409,7 +409,7 @@
<placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/>
<tapGestureRecognizer id="G3V-VT-9Qm"/> <tapGestureRecognizer id="G3V-VT-9Qm"/>
</objects> </objects>
<point key="canvasLocation" x="613" y="231"/>
<point key="canvasLocation" x="611.25" y="230.28169014084509"/>
</scene> </scene>
<!--Home--> <!--Home-->
<scene sceneID="ULq-iv-KTs"> <scene sceneID="ULq-iv-KTs">

10
GME Remit/Modules/Home/User Interface/View/HomeViewController.swift

@ -412,7 +412,7 @@ extension HomeViewController {
private func changeTxnPinMessage() { private func changeTxnPinMessage() {
blobView.removeFromSuperview() blobView.removeFromSuperview()
showMessageView(isHidden: false) showMessageView(isHidden: false)
self.messageViewHeightConstraint.constant = 80
messageTitleLabel.text = "change_txn_pin".localized() messageTitleLabel.text = "change_txn_pin".localized()
messageLabel.text = "change_txn_pin_detail".localized() messageLabel.text = "change_txn_pin_detail".localized()
messageLeftImageview.image = UIImage(named: "Documents") messageLeftImageview.image = UIImage(named: "Documents")
@ -423,7 +423,7 @@ extension HomeViewController {
private func changePinAndPasswordMessage() { private func changePinAndPasswordMessage() {
blobView.removeFromSuperview() blobView.removeFromSuperview()
showMessageView(isHidden: false) showMessageView(isHidden: false)
self.messageViewHeightConstraint.constant = 80
messageTitleLabel.text = "change_txn_pin_n_pass".localized() messageTitleLabel.text = "change_txn_pin_n_pass".localized()
messageLabel.text = "change_txn_pin_n_pass_detail".localized() messageLabel.text = "change_txn_pin_n_pass_detail".localized()
messageLeftImageview.image = UIImage(named: "Documents") messageLeftImageview.image = UIImage(named: "Documents")
@ -434,7 +434,7 @@ extension HomeViewController {
private func showWaitVerifyMessage() { private func showWaitVerifyMessage() {
blobView.removeFromSuperview() blobView.removeFromSuperview()
showMessageView(isHidden: false) showMessageView(isHidden: false)
self.messageViewHeightConstraint.constant = 85
messageTitleLabel.text = StringConstants().verificationInProcessTitleText messageTitleLabel.text = StringConstants().verificationInProcessTitleText
messageLabel.text = StringConstants().soonToUseGmeServicesTitle messageLabel.text = StringConstants().soonToUseGmeServicesTitle
messageLeftImageview.image = UIImage(named: "Documents") messageLeftImageview.image = UIImage(named: "Documents")
@ -443,7 +443,7 @@ extension HomeViewController {
private func showKycIncompleteMessage() { private func showKycIncompleteMessage() {
blobView.removeFromSuperview() blobView.removeFromSuperview()
showMessageView(isHidden: false) showMessageView(isHidden: false)
self.messageViewHeightConstraint.constant = 85
messageTitleLabel.text = "kyc_fill_text".localized() messageTitleLabel.text = "kyc_fill_text".localized()
messageLabel.text = "complete_your_registration_text".localized() messageLabel.text = "complete_your_registration_text".localized()
messageLeftImageview.image = UIImage(named: "Documents") messageLeftImageview.image = UIImage(named: "Documents")
@ -454,7 +454,7 @@ extension HomeViewController {
private func showOTPVerificationMessage() { private func showOTPVerificationMessage() {
blobView.removeFromSuperview() blobView.removeFromSuperview()
showMessageView(isHidden: false) showMessageView(isHidden: false)
self.messageViewHeightConstraint.constant = 80
messageTitleLabel.text = "Verify email" messageTitleLabel.text = "Verify email"
messageLabel.text = "Please click here to verify your email address" messageLabel.text = "Please click here to verify your email address"
messageLeftImageview.image = UIImage(named: "Documents") messageLeftImageview.image = UIImage(named: "Documents")

Loading…
Cancel
Save