Browse Source

notice added

pull/1/head
Dibya Malla 4 years ago
parent
commit
93c4ce07a3
  1. 1
      GME Remit/Modules/Home/Module Interface/HomeModuleInterface.swift
  2. 4
      GME Remit/Modules/Home/User Interface/Presenter/HomePresenter.swift
  3. 1
      GME Remit/Modules/Home/User Interface/View/Cell/HomeCollectionTableViewCell.swift
  4. 1
      GME Remit/Modules/Home/User Interface/View/HomeViewController.swift
  5. 9
      GME Remit/Modules/Home/User Interface/Wireframe/HomeWireframe.swift
  6. 1
      GME Remit/Modules/Home/User Interface/Wireframe/HomeWireframeInput.swift
  7. 10
      GME Remit/Modules/Notice/NotificationHistory/User Interface/View/NotificationHistory.storyboard

1
GME Remit/Modules/Home/Module Interface/HomeModuleInterface.swift

@ -10,6 +10,7 @@ protocol HomeModuleInterface: class {
func openTransactionHistory(type: OverseasType)
func openTodaysRate()
func openSendMoney()
func openNotice()
func openRedeemCashPayment()
func openWithdraw()
func openTrackYourTransfer()

4
GME Remit/Modules/Home/User Interface/Presenter/HomePresenter.swift

@ -22,6 +22,10 @@ class HomePresenter {
// MARK: Home module interface
extension HomePresenter: HomeModuleInterface {
func openNotice() {
wireframe?.openNotice()
}
func openTransactionHistory(type: OverseasType) {
wireframe?.openTransactionHistory(type: type)
}

1
GME Remit/Modules/Home/User Interface/View/Cell/HomeCollectionTableViewCell.swift

@ -43,6 +43,7 @@ class HomeCollectionTableViewCell: UITableViewCell, UICollectionViewDelegateFlow
case redeem
case transactionReport
case walletStatement
case notice
}
@IBOutlet weak var collectionView: UICollectionView!

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

@ -618,6 +618,7 @@ extension HomeViewController: HomeCollectionDelegate {
case .redeem: self.presenter?.openRedeemCashPayment()
case .transactionReport: showTransactionReport()
case .walletStatement: showTrackYourTransfer()
case .notice: presenter?.openNotice()
}
}
}

9
GME Remit/Modules/Home/User Interface/Wireframe/HomeWireframe.swift

@ -15,7 +15,7 @@ class HomeWireframe {
private lazy var todaysRateWireframe = ExchangeRatesWireframe()
private lazy var walletStatementWireframe = WalletStatementWireframe()
private lazy var appUpdateWireFrame = AppUpdateWireframe()
private lazy var noticeWireframe = NotificationHistoryWireframe()
}
extension HomeWireframe: HomeWireframeInput {
@ -51,6 +51,12 @@ extension HomeWireframe: HomeWireframeInput {
}
}
func openNotice() {
if let navigation = self.view.navigationController {
self.noticeWireframe.pushMainView(in: navigation)
}
}
func openTrackYourTransfer() {
if let navigation = self.view.navigationController {
self.walletStatementWireframe.openWalletStatement(source: navigation)
@ -62,6 +68,7 @@ extension HomeWireframe: HomeWireframeInput {
self.todaysRateWireframe.pushMainView(in: navigation)
}
}
func openRedeemCashPayment(){
if let navigation = self.view.navigationController {
RedeemCashPickUpWireframe().pushMainView(in: navigation)

1
GME Remit/Modules/Home/User Interface/Wireframe/HomeWireframeInput.swift

@ -12,6 +12,7 @@ protocol HomeWireframeInput: WireframeInput {
func openTransactionHistory(type: OverseasType)
func openTodaysRate()
func openSendMoney()
func openNotice()
func openRedeemCashPayment()
func openWithdraw()
func openTrackYourTransfer()

10
GME Remit/Modules/Notice/NotificationHistory/User Interface/View/NotificationHistory.storyboard

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="kME-hR-NgN">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="kME-hR-NgN">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
@ -20,7 +20,7 @@
<!--NotificationHistory-->
<scene sceneID="R60-Pu-Hpy">
<objects>
<viewController storyboardIdentifier="NotificationHistoryViewController" title="NotificationHistory" id="HSb-ou-7T5" customClass="NotificationHistoryViewController" customModule="Fast_Remit" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="NotificationHistoryViewController" title="NotificationHistory" id="HSb-ou-7T5" customClass="NotificationHistoryViewController" customModule="JME_Remit" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="9Uc-9s-KgO">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@ -48,7 +48,7 @@
</constraints>
</view>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="NotificationCell" rowHeight="90" id="vWC-07-oo2" customClass="NotificationCell" customModule="Fast_Remit" customModuleProvider="target">
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="NotificationCell" rowHeight="90" id="vWC-07-oo2" customClass="NotificationCell" customModule="JME_Remit" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="375" height="90"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="vWC-07-oo2" id="jsL-8r-w5O">
@ -161,7 +161,6 @@
<point key="canvasLocation" x="-92" y="232.53373313343329"/>
</scene>
</scenes>
<color key="tintColor" red="0.78177064659999995" green="0.55228364470000002" blue="0.018981300289999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<resources>
<image name="ic_cancel" width="12" height="12"/>
<image name="new" width="17" height="5"/>
@ -176,4 +175,5 @@
<color red="0.28999999165534973" green="0.28999999165534973" blue="0.28999999165534973" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
<color key="tintColor" red="0.78177064659999995" green="0.55228364470000002" blue="0.018981300289999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</document>
Loading…
Cancel
Save