Browse Source

change icon and implement set based on dob.

pull/1/head
InKwon James Kim 5 years ago
parent
commit
b568e73144
  1. 21
      GMERemittance/Assets.xcassets/james/chat11.imageset/Contents.json
  2. BIN
      GMERemittance/Assets.xcassets/james/chat11.imageset/chat11.png
  3. 5
      GMERemittance/Module/RegisterModules/KYC/kycForm1/User Interface/View/kycForm1ViewController.swift
  4. 6
      GMERemittance/Module/RegisterModules/KYC/kycForm2/User Interface/View/kycForm2ViewController.swift
  5. 4
      GMERemittance/Module/SplashScreen/User Interface/View/SplashScreen.storyboard

21
GMERemittance/Assets.xcassets/james/chat11.imageset/Contents.json

@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "chat11.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
GMERemittance/Assets.xcassets/james/chat11.imageset/chat11.png

After

Width: 128  |  Height: 128  |  Size: 3.3 KiB

5
GMERemittance/Module/RegisterModules/KYC/kycForm1/User Interface/View/kycForm1ViewController.swift

@ -323,9 +323,12 @@ class KycForm1ViewController: UIViewController {
@objc private func handleDatePicker(sender: UIDatePicker) {
let dateFormatter = DateFormatter()
// test ccr
dateFormatter.dateFormat = AppConstants.dateFormat
self.dobTextField.text = dateFormatter.string(from: sender.date)
// For use id number field in kycForm2
GMEDB.shared.user.set(dobTextField.text, .dateOfBirth)
dobTextField.sendActions(for: .editingChanged)
}

6
GMERemittance/Module/RegisterModules/KYC/kycForm2/User Interface/View/kycForm2ViewController.swift

@ -138,6 +138,12 @@ class KycForm2ViewController: UIViewController {
switch verificationIdSelectedCardType {
case .alieanCard, .nationalIdCard:
self.verificationIdNumberTextField.keyboardType = .numberPad
var dob = GMEDB.shared.user.string(.dateOfBirth)?.replacingOccurrences(of: "-", with: "")
_ = dob?.removeFirst()
_ = dob?.removeFirst()
verificationIdNumberTextField.text = dob
break
case .passport:
self.verificationIdNumberTextField.keyboardType = .default

4
GMERemittance/Module/SplashScreen/User Interface/View/SplashScreen.storyboard

@ -479,7 +479,7 @@
<constraint firstAttribute="height" constant="45" id="T0r-Tx-6h7"/>
<constraint firstAttribute="width" constant="45" id="WLg-In-ByL"/>
</constraints>
<state key="normal" backgroundImage="chat9"/>
<state key="normal" backgroundImage="chat11"/>
<connections>
<action selector="touchInAppChat:" destination="HSb-ou-7T5" eventType="touchUpInside" id="Lq8-Bv-3fn"/>
</connections>
@ -586,7 +586,7 @@
</scenes>
<resources>
<image name="Korea" width="40" height="40"/>
<image name="chat9" width="32" height="32"/>
<image name="chat11" width="128" height="128"/>
<image name="flag_south_korea" width="512" height="512"/>
<image name="ic_dropdown" width="11" height="6"/>
<image name="ic_dropdownSmall" width="6" height="3"/>

Loading…
Cancel
Save