Browse Source

title added in status bar

pull/1/head
gme_2 6 years ago
parent
commit
df1cabd85c
  1. 46
      GMERemittance/Module/SendMoneyParent/User Interface/View/SendMoneyParent.storyboard
  2. 34
      GMERemittance/Module/SendMoneyParent/User Interface/View/SendMoneyParentViewController.swift

46
GMERemittance/Module/SendMoneyParent/User Interface/View/SendMoneyParent.storyboard

@ -9,6 +9,11 @@
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<customFonts key="customFonts">
<array key="SanFranciscoDisplay-Regular.otf">
<string>SanFranciscoDisplay-Regular</string>
</array>
</customFonts>
<scenes>
<!--SendMoneyParent-->
<scene sceneID="R60-Pu-Hpy">
@ -26,10 +31,10 @@
<rect key="frame" x="0.0" y="5" width="375" height="90"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="A8a-4d-hYj">
<rect key="frame" x="0.0" y="12.5" width="375" height="65"/>
<rect key="frame" x="0.0" y="5" width="375" height="80"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UXe-yi-f7S">
<rect key="frame" x="172.5" y="17.5" width="30" height="30"/>
<rect key="frame" x="172.5" y="25" width="30" height="30"/>
<color key="backgroundColor" red="0.92549019610000005" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" secondItem="UXe-yi-f7S" secondAttribute="height" multiplier="1:1" id="Sv4-VH-NS4"/>
@ -42,7 +47,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hBh-Mg-ic2">
<rect key="frame" x="272.5" y="17.5" width="30" height="30"/>
<rect key="frame" x="272.5" y="25" width="30" height="30"/>
<color key="backgroundColor" red="0.92549019610000005" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" secondItem="hBh-Mg-ic2" secondAttribute="height" multiplier="1:1" id="nbl-v4-RqX"/>
@ -55,7 +60,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8vi-Sv-1YG">
<rect key="frame" x="72.5" y="17.5" width="30" height="30"/>
<rect key="frame" x="72.5" y="25" width="30" height="30"/>
<color key="backgroundColor" red="0.92549019610000005" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" secondItem="8vi-Sv-1YG" secondAttribute="height" multiplier="1:1" id="Gvk-Ee-ruZ"/>
@ -68,30 +73,54 @@
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Gyu-fm-gRQ">
<rect key="frame" x="202.5" y="31.5" width="70" height="2"/>
<rect key="frame" x="202.5" y="39" width="70" height="2"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bzk-Kx-Jlq">
<rect key="frame" x="103" y="31.5" width="69.5" height="2"/>
<rect key="frame" x="103" y="39" width="69.5" height="2"/>
<color key="backgroundColor" white="0.66666666669999997" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="2" id="0Cq-TF-OL5"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Payout Mode" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ROb-sT-ysp">
<rect key="frame" x="56.5" y="59" width="62" height="14"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="11"/>
<color key="textColor" red="0.29019607843137252" green="0.29019607843137252" blue="0.29019607843137252" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Amount Detail" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gQB-Gu-fSy">
<rect key="frame" x="153.5" y="59" width="67" height="14"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="11"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Verification" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Hhi-Fm-aQu">
<rect key="frame" x="260" y="59" width="54" height="14"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="11"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" cocoaTouchSystemColor="tableCellGroupedBackgroundColor"/>
<constraints>
<constraint firstItem="8vi-Sv-1YG" firstAttribute="centerY" secondItem="UXe-yi-f7S" secondAttribute="centerY" id="4jX-Ij-hY3"/>
<constraint firstItem="hBh-Mg-ic2" firstAttribute="centerY" secondItem="UXe-yi-f7S" secondAttribute="centerY" id="5Qn-Rq-JQG"/>
<constraint firstAttribute="height" constant="65" id="6Eh-62-3pf"/>
<constraint firstAttribute="height" constant="80" id="6Eh-62-3pf"/>
<constraint firstItem="Hhi-Fm-aQu" firstAttribute="centerX" secondItem="hBh-Mg-ic2" secondAttribute="centerX" id="9yV-NA-llX"/>
<constraint firstItem="UXe-yi-f7S" firstAttribute="leading" secondItem="bzk-Kx-Jlq" secondAttribute="trailing" id="EXJ-Nu-rOZ"/>
<constraint firstItem="Gyu-fm-gRQ" firstAttribute="centerY" secondItem="UXe-yi-f7S" secondAttribute="centerY" id="IQe-ES-Xgs"/>
<constraint firstItem="Gyu-fm-gRQ" firstAttribute="leading" secondItem="UXe-yi-f7S" secondAttribute="trailing" id="Mzw-D7-oGf"/>
<constraint firstItem="bzk-Kx-Jlq" firstAttribute="centerY" secondItem="UXe-yi-f7S" secondAttribute="centerY" id="QnM-lA-JvO"/>
<constraint firstItem="hBh-Mg-ic2" firstAttribute="leading" secondItem="Gyu-fm-gRQ" secondAttribute="trailing" id="Ufb-Z6-Yft"/>
<constraint firstItem="ROb-sT-ysp" firstAttribute="centerX" secondItem="8vi-Sv-1YG" secondAttribute="centerX" id="W2g-Nq-Y9k"/>
<constraint firstItem="UXe-yi-f7S" firstAttribute="centerY" secondItem="A8a-4d-hYj" secondAttribute="centerY" id="Xwm-FE-fCy"/>
<constraint firstItem="bzk-Kx-Jlq" firstAttribute="leading" secondItem="8vi-Sv-1YG" secondAttribute="trailing" id="aNv-gb-KNl"/>
<constraint firstItem="UXe-yi-f7S" firstAttribute="centerX" secondItem="A8a-4d-hYj" secondAttribute="centerX" id="d67-TR-am7"/>
<constraint firstItem="gQB-Gu-fSy" firstAttribute="centerY" secondItem="ROb-sT-ysp" secondAttribute="centerY" id="ivf-Rd-naU"/>
<constraint firstItem="Hhi-Fm-aQu" firstAttribute="centerY" secondItem="gQB-Gu-fSy" secondAttribute="centerY" id="jTS-Nc-ffJ"/>
<constraint firstItem="ROb-sT-ysp" firstAttribute="top" secondItem="8vi-Sv-1YG" secondAttribute="bottom" constant="4" id="jig-ba-cgu"/>
<constraint firstItem="gQB-Gu-fSy" firstAttribute="centerX" secondItem="UXe-yi-f7S" secondAttribute="centerX" id="lXF-Pz-XSU"/>
<constraint firstItem="bzk-Kx-Jlq" firstAttribute="height" secondItem="Gyu-fm-gRQ" secondAttribute="height" id="mLa-OX-vRO"/>
<constraint firstItem="UXe-yi-f7S" firstAttribute="leading" secondItem="8vi-Sv-1YG" secondAttribute="trailing" constant="70" id="mZ7-nK-et0"/>
<constraint firstItem="hBh-Mg-ic2" firstAttribute="leading" secondItem="UXe-yi-f7S" secondAttribute="trailing" constant="70" id="vL7-8X-k2j"/>
@ -125,8 +154,11 @@
<connections>
<outlet property="containerView" destination="TTM-k8-r9y" id="nQw-NX-HCc"/>
<outlet property="exchangeRateButton" destination="UXe-yi-f7S" id="5x2-7M-I3V"/>
<outlet property="exchangeRateLabel" destination="gQB-Gu-fSy" id="PMg-kv-Wry"/>
<outlet property="paymentModeButton" destination="8vi-Sv-1YG" id="weB-ka-ifD"/>
<outlet property="paymentModeLabel" destination="ROb-sT-ysp" id="aqq-PH-CwG"/>
<outlet property="verificationButton" destination="hBh-Mg-ic2" id="2tK-Ax-FDV"/>
<outlet property="verificationLabel" destination="Hhi-Fm-aQu" id="nJz-ho-H74"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/>

34
GMERemittance/Module/SendMoneyParent/User Interface/View/SendMoneyParentViewController.swift

@ -26,13 +26,6 @@ protocol SendMoneyExchangeRateActionDelegate {
func calculated(model: SendMoneyExchangeRateModel?)
}
//public string deliveryMethodId { get; set; }
//public string pBranch { get; set; } id
//public string PAgent { get; set; } id
class SendMoneyRequestModel {
var paymemtMode: SendMoneyPayoutMode?
var bank: SendMoneyBank?
@ -54,6 +47,7 @@ class SendMoneyParentViewController: UIViewController {
struct Constants {
static let stateRedColor = UIColor.init(hex: "#EC1C24")
static let stateGreenColor = UIColor.init(hex: "8CC241")
static let stateLabelGreyColor = UIColor.init(hex: "4a4a4a")
}
// MARK: IBOutlets
@ -62,6 +56,11 @@ class SendMoneyParentViewController: UIViewController {
@IBOutlet weak var paymentModeButton: UIButton!
@IBOutlet weak var exchangeRateButton: UIButton!
@IBOutlet weak var verificationButton: UIButton!
@IBOutlet weak var paymentModeLabel: UILabel!
@IBOutlet weak var exchangeRateLabel: UILabel!
@IBOutlet weak var verificationLabel: UILabel!
// MARK: Properties
var paymentModeViewController: UIViewController?
@ -171,23 +170,44 @@ class SendMoneyParentViewController: UIViewController {
func updateState(state: StateButtons) {
switch state {
case .paymentMode:
// buttons
self.paymentModeButton.backgroundColor = Constants.stateGreenColor
self.exchangeRateButton.backgroundColor = Constants.stateRedColor
self.verificationButton.backgroundColor = Constants.stateRedColor
self.exchangeRateButton.isUserInteractionEnabled = false
self.verificationButton.isUserInteractionEnabled = false
// labels
self.paymentModeLabel.textColor = Constants.stateGreenColor
self.exchangeRateLabel.textColor = Constants.stateLabelGreyColor
self.verificationLabel.textColor = Constants.stateLabelGreyColor
case .exchange:
// buttons
self.paymentModeButton.backgroundColor = Constants.stateGreenColor
self.exchangeRateButton.backgroundColor = Constants.stateGreenColor
self.verificationButton.backgroundColor = Constants.stateRedColor
self.exchangeRateButton.isUserInteractionEnabled = true
self.verificationButton.isUserInteractionEnabled = false
// labels
self.paymentModeLabel.textColor = Constants.stateLabelGreyColor
self.exchangeRateLabel.textColor = Constants.stateGreenColor
self.verificationLabel.textColor = Constants.stateLabelGreyColor
case .verification:
// button
self.paymentModeButton.backgroundColor = Constants.stateGreenColor
self.exchangeRateButton.backgroundColor = Constants.stateGreenColor
self.verificationButton.backgroundColor = Constants.stateGreenColor
self.exchangeRateButton.isUserInteractionEnabled = true
// labels
self.paymentModeLabel.textColor = Constants.stateLabelGreyColor
self.exchangeRateLabel.textColor = Constants.stateLabelGreyColor
self.verificationLabel.textColor = Constants.stateGreenColor
}
}

Loading…
Cancel
Save