InKwon James Kim
5 years ago
46 changed files with 515 additions and 186 deletions
-
16GME Remit.xcodeproj/project.pbxproj
-
BINGMERemittance/.DS_Store
-
4GMERemittance/AppDelegate.swift
-
272GMERemittance/Extension/UIViewControllerExtension.swift
-
20GMERemittance/Extension/UIViewExtension.swift
-
4GMERemittance/Library/WebLinks/WebLinksViewController.swift
-
2GMERemittance/Library/WebLinks/WkWebView/WkWebViewController.swift
-
4GMERemittance/Module/AutoDebitModules/AddAccount/User Interface/View/AddAccountViewController.swift
-
4GMERemittance/Module/AutoDebitModules/AutoDebit/User Interface/View/AutoDebitViewController.swift
-
2GMERemittance/Module/BiometricAuthModules/BiometricAuthenticationNotification/User Interface/View/BiometricAuthenticationNotificationViewController.swift
-
6GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift
-
2GMERemittance/Module/ForgotPassword/User Interface/View/ForgotPasswordViewController.swift
-
4GMERemittance/Module/Home/User Interface/View/HomeViewController.swift
-
2GMERemittance/Module/Login/User Interface/View/LoginViewController.swift
-
4GMERemittance/Module/Profile/ProfileChangePasswordViewController.swift
-
2GMERemittance/Module/RegisterModules/KYC/Kyc/User Interface/View/KycViewController.swift
-
2GMERemittance/Module/RegisterModules/KYC/kycForm1/User Interface/View/kycForm1ViewController.swift
-
2GMERemittance/Module/RegisterModules/KYC/kycForm2/User Interface/View/kycForm2ViewController.swift
-
4GMERemittance/Module/RegisterModules/KYC/kycForm3/User Interface/View/kycForm3ViewController.swift
-
2GMERemittance/Module/RegisterModules/PennyTest/User Interface/View/PennyTestViewController.swift
-
8GMERemittance/Module/RegisterModules/PennyTestSubmit/User Interface/View/PennyTestSubmitViewController.swift
-
2GMERemittance/Module/RegisterModules/Register/User Interface/View/RegisterViewController.swift
-
2GMERemittance/Module/RewardModules/OrderHistory/User Interface/View/OrderHistoryViewController.swift
-
6GMERemittance/Module/RewardModules/Redeem/User Interface/View/RedeemViewController.swift
-
2GMERemittance/Module/SendMoneyModules/Recipient/AddReciepient/User Interface/View/AddReciepientViewController.swift
-
2GMERemittance/Module/SendMoneyModules/Recipient/EditReciepient/User Interface/View/EditReciepientViewController.swift
-
4GMERemittance/Module/SendMoneyModules/Recipient/RecipientListViewController.swift
-
2GMERemittance/Module/SendMoneyModules/Resend/User Interface/View/ResendViewController.swift
-
4GMERemittance/Module/SendMoneyModules/ResendExchange/User Interface/View/ResendExchangeViewController.swift
-
2GMERemittance/Module/SendMoneyModules/SelectCoupon/User Interface/View/SelectCouponViewController.swift
-
2GMERemittance/Module/SendMoneyModules/SendMoneyCode/User Interface/View/SendMoneyCodeViewController.swift
-
2GMERemittance/Module/SendMoneyModules/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift
-
2GMERemittance/Module/SendMoneyModules/SendMoneyPaymentMode/User Interface/View/BankBranchPicker/BankBranchPickerViewController.swift
-
2GMERemittance/Module/SendMoneyModules/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift
-
2GMERemittance/Module/SendMoneyModules/SendMoneyReceipt/User Interface/View/SendMoneyReceiptViewController.swift
-
6GMERemittance/Module/SendMoneyModules/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift
-
2GMERemittance/Module/SideMenu/Auto refund/AutoRefundsViewController.swift
-
3GMERemittance/Module/SideMenu/SettingViewController.swift
-
2GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift
-
2GMERemittance/Module/TransactionHistoryModules/MessageCompose/User Interface/View/MessageComposeViewController.swift
-
2GMERemittance/Module/WalletStatement/User Interface/View/WalletStatementViewController.swift
-
6GMERemittance/Utility/ConfirmAlert/ConfirmViewController.swift
-
16GMERemittance/Utility/ConfirmAlert/ConfirmViewController.xib
-
91GMERemittance/Utility/GMEAlert/GMEAlertViewController.swift
-
141GMERemittance/Utility/GMEAlert/GMEAlertViewController.xib
-
2GMERemittance/Utility/HotLine/User Interface/View/HotLineViewController.swift
@ -0,0 +1,91 @@ |
|||||
|
// |
||||
|
// GMEAlertViewController.swift |
||||
|
// GME Remit |
||||
|
// |
||||
|
// Created by InKwon Devik Kim on 02/07/2019. |
||||
|
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
||||
|
// |
||||
|
|
||||
|
import UIKit |
||||
|
|
||||
|
class GMEAlertViewController: UIViewController { |
||||
|
|
||||
|
@IBOutlet private weak var titleLabel: UILabel! |
||||
|
@IBOutlet private weak var messageLabel: UILabel! |
||||
|
@IBOutlet private weak var rightButton: UIButton! |
||||
|
@IBOutlet private weak var leftButton: UIButton! |
||||
|
@IBOutlet private weak var mainView: UIView! |
||||
|
@IBOutlet private weak var transParentView: UIView! |
||||
|
|
||||
|
private var rightButtonAction: (() -> Void)? |
||||
|
private var leftButtonAction: (() -> Void)? |
||||
|
|
||||
|
private var titleText: String? |
||||
|
private var messageText: String? |
||||
|
private var rightButtonTitle: String? |
||||
|
private var leftButtonTitle: String? |
||||
|
|
||||
|
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { |
||||
|
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) |
||||
|
} |
||||
|
|
||||
|
required init?(coder aDecoder: NSCoder) { |
||||
|
super.init(coder: aDecoder) |
||||
|
} |
||||
|
|
||||
|
init( |
||||
|
title: String? = "Alert", |
||||
|
message: String? = nil, |
||||
|
rightButtonTitle: String? = nil, |
||||
|
leftButtonTitle: String? = nil, |
||||
|
rightButtonAction: (() -> Void)? = nil, |
||||
|
leftButtonAction: (() -> Void)? = nil |
||||
|
) { |
||||
|
super.init(nibName: "GMEAlertViewController", bundle: nil) |
||||
|
|
||||
|
self.titleText = title |
||||
|
self.messageText = message |
||||
|
self.rightButtonTitle = rightButtonTitle |
||||
|
self.leftButtonTitle = leftButtonTitle |
||||
|
|
||||
|
self.rightButtonAction = rightButtonAction |
||||
|
self.leftButtonAction = leftButtonAction |
||||
|
|
||||
|
modalPresentationStyle = .overFullScreen |
||||
|
modalTransitionStyle = .crossDissolve |
||||
|
} |
||||
|
|
||||
|
override func viewDidLoad() { |
||||
|
super.viewDidLoad() |
||||
|
mainView.layer.cornerRadius = 5 |
||||
|
|
||||
|
titleLabel.text = titleText |
||||
|
messageLabel.text = messageText |
||||
|
|
||||
|
rightButton.setTitle(rightButtonTitle, for: .normal) |
||||
|
leftButton.setTitle(leftButtonTitle, for: .normal) |
||||
|
|
||||
|
if leftButtonTitle == nil { |
||||
|
leftButton.isEnabled = false |
||||
|
leftButton.isHidden = true |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
override func viewWillAppear(_ animated: Bool) { |
||||
|
super.viewWillAppear(animated) |
||||
|
|
||||
|
mainView.popUpBouncy() |
||||
|
} |
||||
|
|
||||
|
@IBAction func touchRightButton(_ sender: UIButton) { |
||||
|
self.rightButtonAction?() |
||||
|
self.dismiss(animated: false, completion: nil) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@IBAction func touchLeftButton(_ sender: UIButton) { |
||||
|
self.leftButtonAction?() |
||||
|
self.dismiss(animated: false, completion: nil) |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,141 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> |
||||
|
<device id="retina4_7" orientation="portrait"> |
||||
|
<adaptation id="fullscreen"/> |
||||
|
</device> |
||||
|
<dependencies> |
||||
|
<deployment identifier="iOS"/> |
||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/> |
||||
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/> |
||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
||||
|
</dependencies> |
||||
|
<customFonts key="customFonts"> |
||||
|
<array key="SanFranciscoDisplay-Medium.otf"> |
||||
|
<string>SanFranciscoDisplay-Medium</string> |
||||
|
</array> |
||||
|
<array key="SanFranciscoDisplay-Regular.otf"> |
||||
|
<string>SanFranciscoDisplay-Regular</string> |
||||
|
</array> |
||||
|
</customFonts> |
||||
|
<objects> |
||||
|
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="GMEAlertViewController" customModule="GME_Remit" customModuleProvider="target"> |
||||
|
<connections> |
||||
|
<outlet property="leftButton" destination="JWT-7G-nWP" id="QZf-VN-eQF"/> |
||||
|
<outlet property="mainView" destination="bog-Yc-fSF" id="j3k-Kd-I4w"/> |
||||
|
<outlet property="messageLabel" destination="vZn-aC-Kup" id="mOW-n2-gmG"/> |
||||
|
<outlet property="rightButton" destination="N77-z5-GBG" id="Uvu-ck-IeA"/> |
||||
|
<outlet property="titleLabel" destination="rfn-wg-MBE" id="tnN-AI-jb6"/> |
||||
|
<outlet property="transParentView" destination="Cco-Tf-vUV" id="8IM-dS-Gcg"/> |
||||
|
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> |
||||
|
</connections> |
||||
|
</placeholder> |
||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> |
||||
|
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> |
||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> |
||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
||||
|
<subviews> |
||||
|
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Cco-Tf-vUV"> |
||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> |
||||
|
<subviews> |
||||
|
<view opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bog-Yc-fSF"> |
||||
|
<rect key="frame" x="37.5" y="225.5" width="300" height="216"/> |
||||
|
<subviews> |
||||
|
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="ivh-OD-kSD"> |
||||
|
<rect key="frame" x="0.0" y="0.0" width="300" height="216"/> |
||||
|
<subviews> |
||||
|
<view opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dwd-4A-fUB"> |
||||
|
<rect key="frame" x="0.0" y="0.0" width="300" height="158"/> |
||||
|
<subviews> |
||||
|
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="61r-PG-8gH"> |
||||
|
<rect key="frame" x="20" y="20" width="260" height="118"/> |
||||
|
<subviews> |
||||
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Alert" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rfn-wg-MBE"> |
||||
|
<rect key="frame" x="0.0" y="0.0" width="260" height="46"/> |
||||
|
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Medium" family="San Francisco Display" pointSize="18"/> |
||||
|
<nil key="textColor"/> |
||||
|
<nil key="highlightedColor"/> |
||||
|
</label> |
||||
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="252" textAlignment="center" lineBreakMode="wordWrap" numberOfLines="5" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vZn-aC-Kup"> |
||||
|
<rect key="frame" x="0.0" y="51" width="260" height="67"/> |
||||
|
<string key="text">Welcome to the Swift community. Together we are working to build a programming language to empower everyone to turn their ideas into apps on any platform.</string> |
||||
|
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="14"/> |
||||
|
<nil key="textColor"/> |
||||
|
<nil key="highlightedColor"/> |
||||
|
</label> |
||||
|
</subviews> |
||||
|
</stackView> |
||||
|
</subviews> |
||||
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
||||
|
<constraints> |
||||
|
<constraint firstItem="61r-PG-8gH" firstAttribute="top" secondItem="dwd-4A-fUB" secondAttribute="top" constant="20" id="Y3Q-hK-LiB"/> |
||||
|
<constraint firstAttribute="trailing" secondItem="61r-PG-8gH" secondAttribute="trailing" constant="20" id="YY9-FY-hXs"/> |
||||
|
<constraint firstAttribute="bottom" secondItem="61r-PG-8gH" secondAttribute="bottom" constant="20" id="toi-ga-lvE"/> |
||||
|
<constraint firstItem="61r-PG-8gH" firstAttribute="leading" secondItem="dwd-4A-fUB" secondAttribute="leading" constant="20" id="y8h-RS-tUt"/> |
||||
|
</constraints> |
||||
|
</view> |
||||
|
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TJL-Yy-ccg"> |
||||
|
<rect key="frame" x="0.0" y="166" width="300" height="50"/> |
||||
|
<subviews> |
||||
|
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JWT-7G-nWP"> |
||||
|
<rect key="frame" x="0.0" y="0.0" width="120" height="50"/> |
||||
|
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
||||
|
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Medium" family="San Francisco Display" pointSize="17"/> |
||||
|
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
||||
|
<state key="normal" title="Cancel"/> |
||||
|
<connections> |
||||
|
<action selector="touchLeftButton:" destination="-1" eventType="touchUpInside" id="9vJ-n6-nu4"/> |
||||
|
</connections> |
||||
|
</button> |
||||
|
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="N77-z5-GBG"> |
||||
|
<rect key="frame" x="120" y="0.0" width="180" height="50"/> |
||||
|
<color key="backgroundColor" red="0.92941176469999998" green="0.1058823529" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/> |
||||
|
<constraints> |
||||
|
<constraint firstAttribute="height" constant="50" id="tPZ-6o-s4I"/> |
||||
|
</constraints> |
||||
|
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Medium" family="San Francisco Display" pointSize="17"/> |
||||
|
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
||||
|
<state key="normal" title="Ok"/> |
||||
|
<connections> |
||||
|
<action selector="touchRightButton:" destination="-1" eventType="touchUpInside" id="dG6-s0-YGh"/> |
||||
|
</connections> |
||||
|
</button> |
||||
|
</subviews> |
||||
|
<constraints> |
||||
|
<constraint firstItem="JWT-7G-nWP" firstAttribute="width" secondItem="TJL-Yy-ccg" secondAttribute="width" multiplier="0.4:1" id="99V-FO-kvl"/> |
||||
|
</constraints> |
||||
|
</stackView> |
||||
|
</subviews> |
||||
|
</stackView> |
||||
|
</subviews> |
||||
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
||||
|
<constraints> |
||||
|
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="150" id="490-Nq-19x"/> |
||||
|
<constraint firstItem="ivh-OD-kSD" firstAttribute="leading" secondItem="bog-Yc-fSF" secondAttribute="leading" id="BQq-aS-W9S"/> |
||||
|
<constraint firstAttribute="bottom" secondItem="ivh-OD-kSD" secondAttribute="bottom" id="FAl-3U-jfp"/> |
||||
|
<constraint firstAttribute="trailing" secondItem="ivh-OD-kSD" secondAttribute="trailing" id="V4L-LT-cbY"/> |
||||
|
<constraint firstItem="ivh-OD-kSD" firstAttribute="top" secondItem="bog-Yc-fSF" secondAttribute="top" id="rN2-dT-ts8"/> |
||||
|
</constraints> |
||||
|
</view> |
||||
|
</subviews> |
||||
|
<color key="backgroundColor" white="0.0" alpha="0.60223137842465746" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
||||
|
<constraints> |
||||
|
<constraint firstItem="bog-Yc-fSF" firstAttribute="width" secondItem="Cco-Tf-vUV" secondAttribute="width" multiplier="0.8:1" id="Z37-ht-jiJ"/> |
||||
|
<constraint firstItem="bog-Yc-fSF" firstAttribute="centerY" secondItem="Cco-Tf-vUV" secondAttribute="centerY" id="hYN-Jk-X9O"/> |
||||
|
<constraint firstItem="bog-Yc-fSF" firstAttribute="centerX" secondItem="Cco-Tf-vUV" secondAttribute="centerX" id="l0W-ex-2mL"/> |
||||
|
</constraints> |
||||
|
</view> |
||||
|
</subviews> |
||||
|
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
||||
|
<constraints> |
||||
|
<constraint firstItem="Cco-Tf-vUV" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="3qc-1x-oTc"/> |
||||
|
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="Cco-Tf-vUV" secondAttribute="bottom" id="5HQ-le-1he"/> |
||||
|
<constraint firstItem="Cco-Tf-vUV" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="IDA-9K-IHH"/> |
||||
|
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Cco-Tf-vUV" secondAttribute="trailing" id="Ohi-rJ-lhk"/> |
||||
|
</constraints> |
||||
|
<nil key="simulatedTopBarMetrics"/> |
||||
|
<nil key="simulatedBottomBarMetrics"/> |
||||
|
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> |
||||
|
<point key="canvasLocation" x="39.200000000000003" y="46.326836581709152"/> |
||||
|
</view> |
||||
|
</objects> |
||||
|
</document> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue