Browse Source

added corner radius in pop up

pull/1/head
gme_2 6 years ago
parent
commit
4a5844d1b3
  1. BIN
      GMERemittance/.DS_Store
  2. 50
      GMERemittance/Library/TablePicker/TablePickerViewController.swift
  3. 7
      GMERemittance/Library/TablePicker/TablePickerWithImageTableViewCell.swift
  4. 132
      GMERemittance/Library/TablePicker/TableViewPicker.storyboard
  5. 3
      GMERemittance/Module/ExchangeRateViewControllerV2.swift

BIN
GMERemittance/.DS_Store

50
GMERemittance/Library/TablePicker/TablePickerViewController.swift

@ -25,12 +25,14 @@ class TablePickerViewController: UIViewController {
} }
@IBOutlet weak var titleView: UIView!
@IBOutlet weak var tableVIew: UITableView! @IBOutlet weak var tableVIew: UITableView!
@IBOutlet weak var searchTextField: UITextField! @IBOutlet weak var searchTextField: UITextField!
@IBOutlet weak var navbar: UINavigationBar!
@IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var noResultFoundLabel: UILabel! @IBOutlet weak var noResultFoundLabel: UILabel!
@IBOutlet weak var mainview: UIView!
var data: [String] = [] var data: [String] = []
var filteredPlaces: [String] = [] { var filteredPlaces: [String] = [] {
didSet { didSet {
@ -43,7 +45,7 @@ class TablePickerViewController: UIViewController {
var allowSelection = true var allowSelection = true
var doneAction: (([String]) -> ())? var doneAction: (([String]) -> ())?
var defaultSelectedData: [String] = [] var defaultSelectedData: [String] = []
var showFlag = false
var searchText = "" var searchText = ""
var type: TablePickerViewTitle? var type: TablePickerViewTitle?
@ -54,6 +56,8 @@ class TablePickerViewController: UIViewController {
self.setupSearchService() self.setupSearchService()
self.setupSearchTextFieldUi() self.setupSearchTextFieldUi()
self.setupPlaces() self.setupPlaces()
self.titleView.layer.cornerRadius = 10
self.mainview.layer.cornerRadius = 10
setTitle() setTitle()
} }
@ -153,14 +157,30 @@ class TablePickerViewController: UIViewController {
} }
extension TablePickerViewController: UITableViewDelegate { extension TablePickerViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
func getImageCell(tableView: UITableView, indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.cellForRow(at: indexPath) as! TablePickerTableViewCell let cell = tableView.cellForRow(at: indexPath) as! TablePickerTableViewCell
cell.selectedPlace = self.filteredPlaces.elementAt(index: indexPath.row) cell.selectedPlace = self.filteredPlaces.elementAt(index: indexPath.row)
cell.setup() cell.setup()
if !self.allowMultipleSelection { if !self.allowMultipleSelection {
self.close(nil) self.close(nil)
} }
return cell
}
func getTextCell(tableView: UITableView, indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.cellForRow(at: indexPath) as! TablePickerTableViewCell
cell.selectedPlace = self.filteredPlaces.elementAt(index: indexPath.row)
cell.setup()
if !self.allowMultipleSelection {
self.close(nil)
}
return cell
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
self.showFlag ? getImageCell(tableView: tableView, indexPath: indexPath) :
getTextCell(tableView: tableView, indexPath: indexPath)
} }
func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
@ -186,8 +206,6 @@ extension TablePickerViewController: UITableViewDelegate {
} }
extension TablePickerViewController: UITableViewDataSource { extension TablePickerViewController: UITableViewDataSource {
func numberOfSections(in tableView: UITableView) -> Int { func numberOfSections(in tableView: UITableView) -> Int {
@ -199,21 +217,25 @@ extension TablePickerViewController: UITableViewDataSource {
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableVIew.dequeueReusableCell(withIdentifier: "TablePickerTableViewCell", for: indexPath) as! TablePickerTableViewCell
return self.showFlag ? self.configureImageCel(tableView: tableView, indexPath: indexPath) : configureTextCell(tableView: tableView,indexPath: indexPath)
}
func configureImageCel(tableView: UITableView, indexPath: IndexPath) -> UITableViewCell {
let cell = tableVIew.dequeueReusableCell(withIdentifier: "TablePickerWithImageTableViewCell", for: indexPath) as! TablePickerWithImageTableViewCell
cell.title = filteredPlaces.elementAt(index: indexPath.row) cell.title = filteredPlaces.elementAt(index: indexPath.row)
let onlyIndex = filteredPlaces[indexPath.row].components(separatedBy: " ").first ?? "" let onlyIndex = filteredPlaces[indexPath.row].components(separatedBy: " ").first ?? ""
cell.selectedPlace = self.defaultSelectedData.first cell.selectedPlace = self.defaultSelectedData.first
// if defaultSelectedData.contains(onlyIndex) {
// cell.
// cell.accessoryType = .checkmark
// }else {
// cell.accessoryType = .none
// }
cell.selectedPlaceShortCode = "korea"
cell.setup() cell.setup()
return cell
}
func configureTextCell(tableView: UITableView, indexPath: IndexPath) -> UITableViewCell {
let cell = tableVIew.dequeueReusableCell(withIdentifier: "TablePickerTableViewCell", for: indexPath) as! TablePickerTableViewCell
cell.title = filteredPlaces.elementAt(index: indexPath.row)
let onlyIndex = filteredPlaces[indexPath.row].components(separatedBy: " ").first ?? ""
cell.selectedPlace = self.defaultSelectedData.first
cell.setup()
return cell return cell
} }
} }

7
GMERemittance/Library/TablePicker/TablePickerWithImageTableViewCell.swift

@ -12,9 +12,11 @@ class TablePickerWithImageTableViewCell: UITableViewCell {
@IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var imageview: UIImageView! @IBOutlet weak var imageview: UIImageView!
@IBOutlet weak var checkImageView: UIImageView!
var title: String? var title: String?
var imageName: String? = "korea"
var selectedPlace: String?
var selectedPlaceShortCode: String?
override func awakeFromNib() { override func awakeFromNib() {
super.awakeFromNib() super.awakeFromNib()
@ -23,7 +25,8 @@ class TablePickerWithImageTableViewCell: UITableViewCell {
func setup() { func setup() {
self.titleLabel.text = title self.titleLabel.text = title
if let image = UIImage.init(named: self.imageName ?? "") {
if let image = UIImage.init(named: self.selectedPlaceShortCode ?? "") {
self.imageview.image = image self.imageview.image = image
} }
} }

132
GMERemittance/Library/TablePicker/TableViewPicker.storyboard

@ -28,16 +28,28 @@
<!--Table Picker View Controller--> <!--Table Picker View Controller-->
<scene sceneID="yBq-iG-sKl"> <scene sceneID="yBq-iG-sKl">
<objects> <objects>
<viewController storyboardIdentifier="TablePickerViewController" modalTransitionStyle="crossDissolve" id="llU-Tj-BYp" customClass="TablePickerViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="TablePickerViewController" modalTransitionStyle="crossDissolve" modalPresentationStyle="overCurrentContext" id="llU-Tj-BYp" customClass="TablePickerViewController" customModule="GMERemittance" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="4dD-DG-o6u"> <view key="view" contentMode="scaleToFill" id="4dD-DG-o6u">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="place not found" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rXz-TO-Wmd">
<rect key="frame" x="0.0" y="323.5" width="375" height="20"/>
<fontDescription key="fontDescription" name="Roboto-MediumItalic" family="Roboto" pointSize="17"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VAY-dF-0Al" userLabel="TransparentView">
<rect key="frame" x="0.0" y="20" width="375" height="647"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wzp-T6-Ixq" userLabel="mainView">
<rect key="frame" x="20" y="70" width="335" height="507"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zVI-SC-i0w" customClass="IMEGradientView" customModule="GMERemittance" customModuleProvider="target"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zVI-SC-i0w" customClass="IMEGradientView" customModule="GMERemittance" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="110"/>
<rect key="frame" x="0.0" y="0.0" width="335" height="78"/>
<color key="backgroundColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/> <color key="backgroundColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="110" id="c8B-tR-CuN"/>
<constraint firstAttribute="height" constant="78" id="c8B-tR-CuN"/>
</constraints> </constraints>
<userDefinedRuntimeAttributes> <userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="leftColor"> <userDefinedRuntimeAttribute type="color" keyPath="leftColor">
@ -48,8 +60,17 @@
</userDefinedRuntimeAttribute> </userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</view> </view>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Search" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="svm-hu-oCl" customClass="TextfieldWithSearchIcon" customModule="GMERemittance" customModuleProvider="target">
<rect key="frame" x="0.0" y="63" width="335" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="NZi-8N-TRD"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" name="Roboto-Regular" family="Roboto" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xGA-bg-A1A"> <button opaque="NO" clipsSubviews="YES" contentMode="scaleAspectFit" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xGA-bg-A1A">
<rect key="frame" x="15" y="28" width="28" height="28"/>
<rect key="frame" x="15" y="8" width="28" height="28"/>
<constraints> <constraints>
<constraint firstAttribute="width" secondItem="xGA-bg-A1A" secondAttribute="height" multiplier="1:1" id="0hf-T7-IbG"/> <constraint firstAttribute="width" secondItem="xGA-bg-A1A" secondAttribute="height" multiplier="1:1" id="0hf-T7-IbG"/>
<constraint firstAttribute="width" constant="28" id="Tk6-Ka-eh9"/> <constraint firstAttribute="width" constant="28" id="Tk6-Ka-eh9"/>
@ -61,30 +82,30 @@
</connections> </connections>
</button> </button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pnj-ie-iei"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pnj-ie-iei">
<rect key="frame" x="188" y="42" width="0.0" height="0.0"/>
<rect key="frame" x="167" y="42" width="0.0" height="0.0"/>
<fontDescription key="fontDescription" name="Roboto-Medium" family="Roboto" pointSize="18"/> <fontDescription key="fontDescription" name="Roboto-Medium" family="Roboto" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" style="plain" allowsMultipleSelection="YES" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="knu-xg-39R"> <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" style="plain" allowsMultipleSelection="YES" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="knu-xg-39R">
<rect key="frame" x="0.0" y="149" width="375" height="518"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<rect key="frame" x="10" y="108" width="315" height="389"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="separatorColor" red="0.87450980392156863" green="0.87450980392156863" blue="0.87450980392156863" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="separatorColor" red="0.87450980392156863" green="0.87450980392156863" blue="0.87450980392156863" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<inset key="separatorInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/> <inset key="separatorInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
<prototypes> <prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="TablePickerTableViewCell" id="bNo-2t-oIt" customClass="TablePickerTableViewCell" customModule="GMERemittance" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="375" height="44"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="TablePickerTableViewCell" rowHeight="44" id="bNo-2t-oIt" customClass="TablePickerTableViewCell" customModule="GMERemittance" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="315" height="44"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="bNo-2t-oIt" id="zyE-DB-6EC"> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="bNo-2t-oIt" id="zyE-DB-6EC">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
<rect key="frame" x="0.0" y="0.0" width="315" height="43.5"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W99-fc-7xF"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W99-fc-7xF">
<rect key="frame" x="25" y="5" width="325" height="33"/>
<rect key="frame" x="25" y="5" width="285" height="33"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="LabelLabelLabelLabelLabel" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6kC-9f-Tap"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="LabelLabelLabelLabelLabel" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6kC-9f-Tap">
<rect key="frame" x="73.5" y="7" width="193.5" height="19"/>
<rect key="frame" x="73.5" y="7" width="153.5" height="19"/>
<fontDescription key="fontDescription" name="Roboto-Regular" family="Roboto" pointSize="16"/> <fontDescription key="fontDescription" name="Roboto-Regular" family="Roboto" pointSize="16"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
@ -102,7 +123,7 @@
</state> </state>
</button> </button>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="right" translatesAutoresizingMaskIntoConstraints="NO" id="qLD-xB-yJn"> <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="right" translatesAutoresizingMaskIntoConstraints="NO" id="qLD-xB-yJn">
<rect key="frame" x="293" y="6" width="20" height="20"/>
<rect key="frame" x="253" y="6" width="20" height="20"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints> <constraints>
<constraint firstAttribute="width" secondItem="qLD-xB-yJn" secondAttribute="height" multiplier="1:1" id="VrY-7X-q4U"/> <constraint firstAttribute="width" secondItem="qLD-xB-yJn" secondAttribute="height" multiplier="1:1" id="VrY-7X-q4U"/>
@ -140,23 +161,23 @@
</connections> </connections>
</tableViewCell> </tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="TablePickerWithImageTableViewCell" id="47y-TS-Mfw" customClass="TablePickerWithImageTableViewCell" customModule="GMERemittance" customModuleProvider="target"> <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="TablePickerWithImageTableViewCell" id="47y-TS-Mfw" customClass="TablePickerWithImageTableViewCell" customModule="GMERemittance" customModuleProvider="target">
<rect key="frame" x="0.0" y="72" width="375" height="44"/>
<rect key="frame" x="0.0" y="72" width="315" height="44"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="47y-TS-Mfw" id="V0y-1B-FxW"> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="47y-TS-Mfw" id="V0y-1B-FxW">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
<rect key="frame" x="0.0" y="0.0" width="315" height="43.5"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Br-t4-UhR"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Br-t4-UhR">
<rect key="frame" x="25" y="5" width="325" height="34"/>
<rect key="frame" x="25" y="5" width="285" height="34"/>
<subviews> <subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="LabelLabelLabelLabelLabel" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="e3k-NO-Qcw"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="LabelLabelLabelLabelLabel" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="e3k-NO-Qcw">
<rect key="frame" x="71" y="8" width="196" height="19"/>
<rect key="frame" x="71" y="8" width="156" height="19"/>
<fontDescription key="fontDescription" name="Roboto-Regular" family="Roboto" pointSize="16"/> <fontDescription key="fontDescription" name="Roboto-Regular" family="Roboto" pointSize="16"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="right" translatesAutoresizingMaskIntoConstraints="NO" id="UNt-p8-Ulf"> <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="right" translatesAutoresizingMaskIntoConstraints="NO" id="UNt-p8-Ulf">
<rect key="frame" x="293" y="7" width="20" height="20"/>
<rect key="frame" x="253" y="7" width="20" height="20"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="20" id="Nu2-bb-Vg7"/> <constraint firstAttribute="height" constant="20" id="Nu2-bb-Vg7"/>
@ -180,6 +201,7 @@
<constraint firstItem="UNt-p8-Ulf" firstAttribute="centerY" secondItem="1Br-t4-UhR" secondAttribute="centerY" id="bJE-pc-sqG"/> <constraint firstItem="UNt-p8-Ulf" firstAttribute="centerY" secondItem="1Br-t4-UhR" secondAttribute="centerY" id="bJE-pc-sqG"/>
<constraint firstItem="e3k-NO-Qcw" firstAttribute="leading" secondItem="hgf-1U-kA6" secondAttribute="trailing" constant="28" id="f00-c5-yJq"/> <constraint firstItem="e3k-NO-Qcw" firstAttribute="leading" secondItem="hgf-1U-kA6" secondAttribute="trailing" constant="28" id="f00-c5-yJq"/>
<constraint firstItem="e3k-NO-Qcw" firstAttribute="centerY" secondItem="1Br-t4-UhR" secondAttribute="centerY" id="k3g-j2-2lT"/> <constraint firstItem="e3k-NO-Qcw" firstAttribute="centerY" secondItem="1Br-t4-UhR" secondAttribute="centerY" id="k3g-j2-2lT"/>
<constraint firstItem="hgf-1U-kA6" firstAttribute="leading" secondItem="1Br-t4-UhR" secondAttribute="leading" constant="15" id="vBZ-Cz-LhB"/>
</constraints> </constraints>
</view> </view>
</subviews> </subviews>
@ -193,57 +215,69 @@
</tableViewCellContentView> </tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections> <connections>
<outlet property="backgroundview" destination="1Br-t4-UhR" id="Lyn-VQ-Anr"/>
<outlet property="checkImageView" destination="UNt-p8-Ulf" id="LVQ-3X-xvC"/>
<outlet property="checkImageView" destination="UNt-p8-Ulf" id="Wt7-rK-qBS"/>
<outlet property="imageview" destination="hgf-1U-kA6" id="JDP-RF-tpe"/> <outlet property="imageview" destination="hgf-1U-kA6" id="JDP-RF-tpe"/>
<outlet property="titleLabel" destination="e3k-NO-Qcw" id="X9W-EP-BxP"/> <outlet property="titleLabel" destination="e3k-NO-Qcw" id="X9W-EP-BxP"/>
</connections> </connections>
</tableViewCell> </tableViewCell>
</prototypes> </prototypes>
</tableView> </tableView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="place not found" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rXz-TO-Wmd">
<rect key="frame" x="0.0" y="282" width="375" height="20"/>
<fontDescription key="fontDescription" name="Roboto-MediumItalic" family="Roboto" pointSize="17"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Search" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="svm-hu-oCl" customClass="TextfieldWithSearchIcon" customModule="GMERemittance" customModuleProvider="target">
<rect key="frame" x="30" y="87" width="315" height="45"/>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="45" id="NZi-8N-TRD"/>
<constraint firstItem="knu-xg-39R" firstAttribute="leading" secondItem="wzp-T6-Ixq" secondAttribute="leading" constant="10" id="0pi-lg-ToY"/>
<constraint firstItem="knu-xg-39R" firstAttribute="top" secondItem="svm-hu-oCl" secondAttribute="bottom" id="8ei-EA-Dye"/>
<constraint firstItem="zVI-SC-i0w" firstAttribute="leading" secondItem="wzp-T6-Ixq" secondAttribute="leading" id="CsF-vO-6wb"/>
<constraint firstItem="xGA-bg-A1A" firstAttribute="leading" secondItem="wzp-T6-Ixq" secondAttribute="leading" constant="15" id="DJ3-mJ-DEE"/>
<constraint firstAttribute="trailing" secondItem="svm-hu-oCl" secondAttribute="trailing" id="DdZ-Wk-bfq"/>
<constraint firstItem="xGA-bg-A1A" firstAttribute="top" secondItem="wzp-T6-Ixq" secondAttribute="top" constant="8" id="G9P-Zb-Dpx"/>
<constraint firstAttribute="trailing" secondItem="knu-xg-39R" secondAttribute="trailing" constant="10" id="RXt-UL-0kJ"/>
<constraint firstItem="pnj-ie-iei" firstAttribute="centerX" secondItem="wzp-T6-Ixq" secondAttribute="centerX" id="WSq-LF-AYk"/>
<constraint firstItem="svm-hu-oCl" firstAttribute="leading" secondItem="wzp-T6-Ixq" secondAttribute="leading" id="ezs-Uu-n09"/>
<constraint firstAttribute="bottom" secondItem="knu-xg-39R" secondAttribute="bottom" constant="10" id="f5X-9R-sZn"/>
<constraint firstAttribute="trailing" secondItem="zVI-SC-i0w" secondAttribute="trailing" id="kAu-A0-ztQ"/>
<constraint firstItem="svm-hu-oCl" firstAttribute="top" secondItem="zVI-SC-i0w" secondAttribute="bottom" constant="-15" id="ovt-BK-QS6"/>
<constraint firstItem="zVI-SC-i0w" firstAttribute="top" secondItem="wzp-T6-Ixq" secondAttribute="top" id="wsJ-wR-BBA"/>
<constraint firstItem="pnj-ie-iei" firstAttribute="top" secondItem="wzp-T6-Ixq" secondAttribute="top" constant="42" id="yfm-13-zCH"/>
</constraints> </constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" name="Roboto-Regular" family="Roboto" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
</view>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" white="0.0" alpha="0.404847051056338" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="wzp-T6-Ixq" firstAttribute="top" secondItem="VAY-dF-0Al" secondAttribute="top" constant="60" id="4Mp-eV-QY3"/>
<constraint firstAttribute="trailing" secondItem="wzp-T6-Ixq" secondAttribute="trailing" constant="20" id="NcC-VA-uU9"/>
<constraint firstAttribute="bottom" secondItem="wzp-T6-Ixq" secondAttribute="bottom" constant="40" id="RWz-IT-HuB"/>
<constraint firstItem="wzp-T6-Ixq" firstAttribute="leading" secondItem="VAY-dF-0Al" secondAttribute="leading" constant="20" id="WS0-a1-oA3"/>
<constraint firstAttribute="bottom" secondItem="wzp-T6-Ixq" secondAttribute="bottom" constant="70" id="a6D-U2-TIq"/>
<constraint firstItem="wzp-T6-Ixq" firstAttribute="top" secondItem="VAY-dF-0Al" secondAttribute="top" constant="70" id="u0p-4O-nYL"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="4Mp-eV-QY3"/>
<exclude reference="RWz-IT-HuB"/>
</mask>
</variation>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints> <constraints>
<constraint firstItem="pnj-ie-iei" firstAttribute="centerX" secondItem="4dD-DG-o6u" secondAttribute="centerX" id="07v-kP-cWJ"/>
<constraint firstItem="zVI-SC-i0w" firstAttribute="top" secondItem="4dD-DG-o6u" secondAttribute="top" id="1cN-Qn-xGA"/>
<constraint firstItem="xGA-bg-A1A" firstAttribute="top" secondItem="Hxo-JI-j8M" secondAttribute="top" constant="8" id="2Zg-m5-gmx"/>
<constraint firstItem="xGA-bg-A1A" firstAttribute="leading" secondItem="Hxo-JI-j8M" secondAttribute="leading" constant="15" id="8hr-Yh-X92"/>
<constraint firstItem="svm-hu-oCl" firstAttribute="leading" secondItem="Hxo-JI-j8M" secondAttribute="leading" constant="30" id="9gK-oD-6JJ"/>
<constraint firstItem="rXz-TO-Wmd" firstAttribute="trailing" secondItem="Hxo-JI-j8M" secondAttribute="trailing" id="Bkz-Ez-2B6"/> <constraint firstItem="rXz-TO-Wmd" firstAttribute="trailing" secondItem="Hxo-JI-j8M" secondAttribute="trailing" id="Bkz-Ez-2B6"/>
<constraint firstItem="Hxo-JI-j8M" firstAttribute="trailing" secondItem="zVI-SC-i0w" secondAttribute="trailing" id="DAC-5y-lOS"/>
<constraint firstItem="rXz-TO-Wmd" firstAttribute="top" secondItem="svm-hu-oCl" secondAttribute="bottom" constant="150" id="HF0-hK-N6A"/>
<constraint firstItem="Hxo-JI-j8M" firstAttribute="bottom" secondItem="knu-xg-39R" secondAttribute="bottom" id="HqA-5y-VDK"/>
<constraint firstItem="VAY-dF-0Al" firstAttribute="top" secondItem="Hxo-JI-j8M" secondAttribute="top" id="EyD-H8-k6M"/>
<constraint firstItem="rXz-TO-Wmd" firstAttribute="leading" secondItem="Hxo-JI-j8M" secondAttribute="leading" id="RdO-ZI-k3G"/> <constraint firstItem="rXz-TO-Wmd" firstAttribute="leading" secondItem="Hxo-JI-j8M" secondAttribute="leading" id="RdO-ZI-k3G"/>
<constraint firstItem="zVI-SC-i0w" firstAttribute="leading" secondItem="Hxo-JI-j8M" secondAttribute="leading" id="WLT-ZN-q8T"/>
<constraint firstItem="Hxo-JI-j8M" firstAttribute="trailing" secondItem="svm-hu-oCl" secondAttribute="trailing" constant="30" id="e81-Xy-wIl"/>
<constraint firstItem="pnj-ie-iei" firstAttribute="centerY" secondItem="xGA-bg-A1A" secondAttribute="centerY" id="i7X-dV-Uz1"/>
<constraint firstItem="knu-xg-39R" firstAttribute="top" secondItem="svm-hu-oCl" secondAttribute="bottom" constant="17" id="lvV-1z-pXh"/>
<constraint firstItem="knu-xg-39R" firstAttribute="leading" secondItem="Hxo-JI-j8M" secondAttribute="leading" id="rpX-NO-rp8"/>
<constraint firstItem="Hxo-JI-j8M" firstAttribute="trailing" secondItem="knu-xg-39R" secondAttribute="trailing" id="usJ-hj-pEk"/>
<constraint firstItem="svm-hu-oCl" firstAttribute="bottom" secondItem="zVI-SC-i0w" secondAttribute="bottom" constant="22" id="wna-g3-EoB"/>
<constraint firstItem="rXz-TO-Wmd" firstAttribute="centerY" secondItem="4dD-DG-o6u" secondAttribute="centerY" id="Whg-1x-aT9"/>
<constraint firstItem="Hxo-JI-j8M" firstAttribute="bottom" secondItem="VAY-dF-0Al" secondAttribute="bottom" id="foh-9R-0mf"/>
<constraint firstItem="Hxo-JI-j8M" firstAttribute="trailing" secondItem="VAY-dF-0Al" secondAttribute="trailing" id="gPx-EV-eAh"/>
<constraint firstItem="VAY-dF-0Al" firstAttribute="leading" secondItem="Hxo-JI-j8M" secondAttribute="leading" id="wsc-oy-vqh"/>
</constraints> </constraints>
<viewLayoutGuide key="safeArea" id="Hxo-JI-j8M"/> <viewLayoutGuide key="safeArea" id="Hxo-JI-j8M"/>
</view> </view>
<connections> <connections>
<outlet property="mainview" destination="wzp-T6-Ixq" id="sL4-MN-9MD"/>
<outlet property="noResultFoundLabel" destination="rXz-TO-Wmd" id="YU5-cS-kXD"/> <outlet property="noResultFoundLabel" destination="rXz-TO-Wmd" id="YU5-cS-kXD"/>
<outlet property="searchTextField" destination="svm-hu-oCl" id="WUY-eW-ceV"/> <outlet property="searchTextField" destination="svm-hu-oCl" id="WUY-eW-ceV"/>
<outlet property="tableVIew" destination="knu-xg-39R" id="eMF-c8-IWk"/> <outlet property="tableVIew" destination="knu-xg-39R" id="eMF-c8-IWk"/>
<outlet property="titleLabel" destination="pnj-ie-iei" id="H7A-0P-Mrl"/> <outlet property="titleLabel" destination="pnj-ie-iei" id="H7A-0P-Mrl"/>
<outlet property="titleView" destination="zVI-SC-i0w" id="R9j-RE-LEt"/>
</connections> </connections>
</viewController> </viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="8tl-V7-nI1" userLabel="First Responder" sceneMemberID="firstResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="8tl-V7-nI1" userLabel="First Responder" sceneMemberID="firstResponder"/>

3
GMERemittance/Module/ExchangeRateViewControllerV2.swift

@ -45,7 +45,8 @@ class ExchangeRateViewControllerV2: UIViewController {
@objc func showCountryList(_ sender: UITapGestureRecognizer) { @objc func showCountryList(_ sender: UITapGestureRecognizer) {
print("show Country List") print("show Country List")
let viewcontroller = UIStoryboard.init(name: "TableViewPicker", bundle: nil).instantiateViewController(withIdentifier: "TablePickerViewController") as! TablePickerViewController let viewcontroller = UIStoryboard.init(name: "TableViewPicker", bundle: nil).instantiateViewController(withIdentifier: "TablePickerViewController") as! TablePickerViewController
viewcontroller.data = ["Nepal", "Japan"]
viewcontroller.data = ["Nepal", "Japan", "Korea"]
viewcontroller.showFlag = true
viewcontroller.type = TablePickerViewTitle.country viewcontroller.type = TablePickerViewTitle.country
self.present(viewcontroller, animated: true, completion: nil) self.present(viewcontroller, animated: true, completion: nil)
} }

Loading…
Cancel
Save