Browse Source

edit TablePresenter cancel action ( set nil )

pull/1/head
InKwon James Kim 5 years ago
parent
commit
aa02652ead
  1. 2
      GME Remit.xcodeproj/project.pbxproj
  2. 2
      GME Remit/AppDelegate.swift
  3. 2
      GME Remit/Modules/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift
  4. 1
      GME Remit/Modules/RegisterModules/KYC/kycForm1/User Interface/View/kycForm1ViewController.swift
  5. 2
      GME Remit/Modules/RegisterModules/Register/User Interface/View/RegisterViewController.swift
  6. 5
      GME Remit/Modules/RemittanceModules/DomesticModules/DomesticRemit/User Interface/View/DomesticRemitViewController.swift
  7. 3
      GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift
  8. 2
      GME Remit/Modules/SideMenu/SettingViewController.swift
  9. 4
      GME Remit/Modules/SplashScreen/User Interface/View/SplashScreenViewController.swift
  10. 2
      GME Remit/Supported Files/Assets.xcassets/ccr/flags/flag_ethiopia.imageset/Contents.json
  11. BIN
      GME Remit/Supported Files/Assets.xcassets/ccr/flags/flag_ethiopia.imageset/Webp.net-resizeimage.png
  12. BIN
      GME Remit/Supported Files/Assets.xcassets/ccr/flags/flag_ethiopia.imageset/flag_ethiopia.png
  13. 8
      GME Remit/Supported Files/Info.plist
  14. 8
      GME Remit/Utilities/SwipeNavigationController.swift
  15. 1
      GME Remit/Utilities/TablePresenter/User Interface/View/TablePresenterViewController.swift

2
GME Remit.xcodeproj/project.pbxproj

@ -15203,6 +15203,7 @@
"$(inherited)", "$(inherited)",
"$(PROJECT_DIR)/GME\\ Remit/ThirdParty/virtualKeyboard/mtk_module", "$(PROJECT_DIR)/GME\\ Remit/ThirdParty/virtualKeyboard/mtk_module",
); );
MARKETING_VERSION = 2.6.0;
PRODUCT_BUNDLE_IDENTIFIER = com.gme.gmeremit; PRODUCT_BUNDLE_IDENTIFIER = com.gme.gmeremit;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
@ -15236,6 +15237,7 @@
"$(inherited)", "$(inherited)",
"$(PROJECT_DIR)/GME\\ Remit/ThirdParty/virtualKeyboard/mtk_module", "$(PROJECT_DIR)/GME\\ Remit/ThirdParty/virtualKeyboard/mtk_module",
); );
MARKETING_VERSION = 2.6.0;
PRODUCT_BUNDLE_IDENTIFIER = com.gme.gmeremit; PRODUCT_BUNDLE_IDENTIFIER = com.gme.gmeremit;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";

2
GME Remit/AppDelegate.swift

@ -20,7 +20,7 @@ import IQKeyboardManagerSwift
import Localize_Swift import Localize_Swift
import ChannelIO import ChannelIO
let server: Server = .live
let server: Server = .uat
var overlayView: UIView? var overlayView: UIView?
@UIApplicationMain @UIApplicationMain

2
GME Remit/Modules/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift

@ -538,6 +538,6 @@ extension ExchangeRatesViewController: TablePresenterDelegate {
) { ) {
showExchangeRateInfomation(isHidden: true) showExchangeRateInfomation(isHidden: true)
selectedPaymentModeIndex = 0 selectedPaymentModeIndex = 0
selectedExchangeRateModel = model as? ExchangeRateModel
selectedExchangeRateModel = (model as? ExchangeRateModel) ?? selectedExchangeRateModel
} }
} }

1
GME Remit/Modules/RegisterModules/KYC/kycForm1/User Interface/View/kycForm1ViewController.swift

@ -191,7 +191,6 @@ class KycForm1ViewController: UIViewController {
self.view.endEditing(true) self.view.endEditing(true)
} }
// MARK: IBActions // MARK: IBActions
@IBAction func save(_ sender: UIButton) { @IBAction func save(_ sender: UIButton) {

2
GME Remit/Modules/RegisterModules/Register/User Interface/View/RegisterViewController.swift

@ -318,6 +318,6 @@ extension RegisterViewController: TablePresenterDelegate {
_ viewController: TablePresenterViewController, _ viewController: TablePresenterViewController,
didSelectModel model: TablePresenterProtocol? didSelectModel model: TablePresenterProtocol?
) { ) {
selectedNativeCountry = model as? NativeCountryModel
selectedNativeCountry = (model as? NativeCountryModel) ?? selectedNativeCountry
} }
} }

5
GME Remit/Modules/RemittanceModules/DomesticModules/DomesticRemit/User Interface/View/DomesticRemitViewController.swift

@ -166,7 +166,10 @@ extension DomesticRemitViewController {
.drive(onNext: { .drive(onNext: {
guard guard
let name = $0?.bankName, let name = $0?.bankName,
let account = $0?.accountNumMasked else { return }
let account = $0?.accountNumMasked else {
self.autoDebitTextField.text = ""
return
}
self.autoDebitTextField.text = "\(name) (\(account))" self.autoDebitTextField.text = "\(name) (\(account))"

3
GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift

@ -519,7 +519,8 @@ extension SendMoneyExchangeRateViewController: TablePresenterDelegate {
_ viewController: TablePresenterViewController, _ viewController: TablePresenterViewController,
didSelectModel model: TablePresenterProtocol? didSelectModel model: TablePresenterProtocol?
) { ) {
selectedCurrencyViewModel = model as? SendMoneyExchangeRateCurrencyViewModel
selectedCurrencyViewModel =
(model as? SendMoneyExchangeRateCurrencyViewModel) ?? selectedCurrencyViewModel
calcBy.lowercased() == "c" ? (reciepientTextField.text = "") : (senderTextField.text = "") calcBy.lowercased() == "c" ? (reciepientTextField.text = "") : (senderTextField.text = "")
} }

2
GME Remit/Modules/SideMenu/SettingViewController.swift

@ -169,7 +169,7 @@ extension SettingViewController: TablePresenterDelegate {
_ viewController: TablePresenterViewController, _ viewController: TablePresenterViewController,
didSelectModel model: TablePresenterProtocol? didSelectModel model: TablePresenterProtocol?
) { ) {
self.selectedLanguage = model as? SendMoneyCountryViewModel
self.selectedLanguage = (model as? SendMoneyCountryViewModel) ?? self.selectedLanguage
} }
} }

4
GME Remit/Modules/SplashScreen/User Interface/View/SplashScreenViewController.swift

@ -478,10 +478,10 @@ extension SplashScreenViewController: TablePresenterDelegate {
) { ) {
switch viewController.view.tag { switch viewController.view.tag {
case 0: case 0:
selectedLanguage = model as? SendMoneyCountryViewModel
selectedLanguage = (model as? SendMoneyCountryViewModel) ?? selectedLanguage
case 1: case 1:
showExchangeRateInfomation(isHidden: true) showExchangeRateInfomation(isHidden: true)
selectedExchangeRateModel = model as? ExchangeRateModel
selectedExchangeRateModel = (model as? ExchangeRateModel) ?? selectedExchangeRateModel
default: break default: break
} }

2
GME Remit/Supported Files/Assets.xcassets/ccr/flags/flag_ethiopia.imageset/Contents.json

@ -2,7 +2,7 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "flag_ethiopia.png",
"filename" : "Webp.net-resizeimage.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {

BIN
GME Remit/Supported Files/Assets.xcassets/ccr/flags/flag_ethiopia.imageset/Webp.net-resizeimage.png

After

Width: 512  |  Height: 371  |  Size: 31 KiB

BIN
GME Remit/Supported Files/Assets.xcassets/ccr/flags/flag_ethiopia.imageset/flag_ethiopia.png

Before

Width: 512  |  Height: 512  |  Size: 25 KiB

8
GME Remit/Supported Files/Info.plist

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>2.5.2</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
<array> <array>
<dict> <dict>
@ -98,6 +98,8 @@
<array> <array>
<string>armv7</string> <string>armv7</string>
</array> </array>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDarkContent</string>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
<string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortrait</string>
@ -109,7 +111,9 @@
<string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string> <string>UIInterfaceOrientationLandscapeRight</string>
</array> </array>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>UIViewControllerBasedStatusBarAppearance</key> <key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<true/>
</dict> </dict>
</plist> </plist>

8
GME Remit/Utilities/SwipeNavigationController.swift

@ -14,6 +14,7 @@ class SwipeNavigationController: UINavigationController {
override init(rootViewController: UIViewController) { override init(rootViewController: UIViewController) {
super.init(rootViewController: rootViewController) super.init(rootViewController: rootViewController)
delegate = self
} }
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
@ -57,8 +58,11 @@ class SwipeNavigationController: UINavigationController {
// MARK: - UINavigationControllerDelegate // MARK: - UINavigationControllerDelegate
extension SwipeNavigationController: UINavigationControllerDelegate { extension SwipeNavigationController: UINavigationControllerDelegate {
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
func navigationController(
_ navigationController: UINavigationController,
didShow viewController: UIViewController,
animated: Bool
) {
guard let swipeNavigationController = navigationController as? SwipeNavigationController else { return } guard let swipeNavigationController = navigationController as? SwipeNavigationController else { return }
swipeNavigationController.duringPushAnimation = false swipeNavigationController.duringPushAnimation = false

1
GME Remit/Utilities/TablePresenter/User Interface/View/TablePresenterViewController.swift

@ -109,6 +109,7 @@ class TablePresenterViewController: UIViewController {
@IBAction func touchCloseButton(_ sender: UIButton) { @IBAction func touchCloseButton(_ sender: UIButton) {
presentingViewController?.view.endEditing(true) presentingViewController?.view.endEditing(true)
mainView.originToBottom { mainView.originToBottom {
self.delegate?.tablePresenterView(self, didSelectModel: nil)
self.dismiss(animated: true) self.dismiss(animated: true)
} }
} }

Loading…
Cancel
Save