Browse Source

some commit

v0.17
Dibya 2 years ago
parent
commit
3e438aba45
  1. BIN
      .DS_Store
  2. 9
      GME Remit/Modules/RecipientModules/Recipients/User Interface/View/Recipients.storyboard
  3. 25
      GME Remit/Modules/RecipientModules/Recipients/User Interface/View/RecipientsViewController.swift

BIN
.DS_Store

9
GME Remit/Modules/RecipientModules/Recipients/User Interface/View/Recipients.storyboard

@ -331,7 +331,7 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4hS-d5-0mq">
<rect key="frame" x="0.0" y="133" width="375" height="131"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Registered beneficiaries" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jQK-AW-0pG">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" text="Registered beneficiaries" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jQK-AW-0pG">
<rect key="frame" x="8" y="8" width="143.5" height="14.5"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="12"/>
<color key="textColor" name="ThemeText"/>
@ -401,7 +401,6 @@
<constraint firstAttribute="trailing" secondItem="h3h-DK-LWz" secondAttribute="trailing" id="3Tg-0Z-hiS"/>
<constraint firstItem="h3h-DK-LWz" firstAttribute="top" secondItem="jQK-AW-0pG" secondAttribute="bottom" constant="15" id="6ZB-nR-tk0"/>
<constraint firstItem="h3h-DK-LWz" firstAttribute="leading" secondItem="4hS-d5-0mq" secondAttribute="leading" id="8Om-rL-zOz"/>
<constraint firstItem="jtc-R8-9Oq" firstAttribute="leading" secondItem="jQK-AW-0pG" secondAttribute="trailing" priority="750" constant="167.5" id="AvD-LJ-8Do"/>
<constraint firstItem="jtc-R8-9Oq" firstAttribute="top" secondItem="4hS-d5-0mq" secondAttribute="top" constant="8" id="UAR-ak-NSa"/>
<constraint firstAttribute="trailing" secondItem="jtc-R8-9Oq" secondAttribute="trailing" constant="8" id="YJe-dM-iof"/>
<constraint firstAttribute="bottom" secondItem="h3h-DK-LWz" secondAttribute="bottom" constant="8" id="fdg-D7-PTc"/>
@ -418,9 +417,12 @@
<color key="textColor" name="ThemeText"/>
<nil key="highlightedColor"/>
</label>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="fv4-Df-cKH">
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" scrollEnabled="NO" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="fv4-Df-cKH">
<rect key="frame" x="20" y="34.5" width="335" height="653.5"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="653.5" id="In6-dW-UpD"/>
</constraints>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" restorationIdentifier="TransferListTableViewCell" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="TransferListTableViewCell" rowHeight="161" id="K6H-Ti-Vmr" customClass="TransferListTableViewCell" customModule="JME_Remit" customModuleProvider="target">
<rect key="frame" x="0.0" y="50" width="335" height="161"/>
@ -598,6 +600,7 @@
<outlet property="collectionView" destination="h3h-DK-LWz" id="PD4-WF-SvF"/>
<outlet property="searchBar" destination="z8A-z6-Cj8" id="Qzl-dW-yyg"/>
<outlet property="tableView" destination="fv4-Df-cKH" id="E3L-Is-Ylj"/>
<outlet property="tableViewHeightConstraints" destination="In6-dW-UpD" id="bVH-MN-g5Q"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="wAc-3U-MqQ" userLabel="First Responder" sceneMemberID="firstResponder"/>

25
GME Remit/Modules/RecipientModules/Recipients/User Interface/View/RecipientsViewController.swift

@ -61,10 +61,10 @@ class RecipientsViewController: UIViewController {
}
// override func viewWillLayoutSubviews() {
// super.viewWillLayoutSubviews()
// self.tableViewHeightConstraints.constant = (self.tableView.contentSize.height)
// }
override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
self.tableViewHeightConstraints.constant = (self.tableView.contentSize.height)
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
@ -86,7 +86,7 @@ class RecipientsViewController: UIViewController {
}
@objc func updateTabBarTitle() {
self.tabBarItem.title = "send_money_text".localized()
self.tabBarItem.title = "Search your transfers"
}
}
@ -168,16 +168,23 @@ extension RecipientsViewController {
// })
// .disposed(by: disposeBag)
output
.recipients.drive(
onNext: { [weak self] in guard let `self` = self else { return }
self.model = $0
print("model:\(self.model)")
DispatchQueue.main.async {
self.viewWillLayoutSubviews()
}
}
).disposed(by: disposeBag)
output
.recipients.drive(
tableView.rx.items(cellIdentifier: "TransferListTableViewCell")
) { [weak self] (_, element: Recipient, cell: TransferListTableViewCell) in
guard let `self` = self else { return }
// DispatchQueue.main.async {
// self.viewWillLayoutSubviews()
// }
cell.setModel(with: element)
// cell.hero.modifiers = [.fade, .scale(0.7)]
// cell.delegate = self

Loading…
Cancel
Save