Dibya
2 years ago
7 changed files with 343 additions and 199 deletions
-
12GME Remit.xcodeproj/project.pbxproj
-
239GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryDetail.storyboard
-
18GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryDetailHeaderView.swift
-
201GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryDetailHeaderView.xib
-
40GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryDetailViewController.swift
-
31GME Remit/Modules/BeneficiaryDetail/User Interface/View/BeneficiaryTableViewCell.swift
-
1GME Remit/Modules/RecipientModules/Recipients/Application Logic/Interactor/RecipientsInteractor.swift
@ -0,0 +1,18 @@ |
|||
// |
|||
|
|||
import UIKit |
|||
|
|||
class BeneficiaryDetailHeaderView: UITableViewHeaderFooterView { |
|||
|
|||
static var identifier: String { |
|||
return String(describing: self) |
|||
} |
|||
/* |
|||
// Only override draw() if you perform custom drawing. |
|||
// An empty implementation adversely affects performance during animation. |
|||
override func draw(_ rect: CGRect) { |
|||
// Drawing code |
|||
} |
|||
*/ |
|||
|
|||
} |
@ -0,0 +1,201 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21507" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> |
|||
<device id="retina6_12" orientation="portrait" appearance="light"/> |
|||
<dependencies> |
|||
<deployment identifier="iOS"/> |
|||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21505"/> |
|||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> |
|||
<capability name="System colors in document resources" minToolsVersion="11.0"/> |
|||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
|||
</dependencies> |
|||
<customFonts key="customFonts"> |
|||
<array key="volte-semibold.otf"> |
|||
<string>FONTSPRINGDEMO-VolteSemiboldRegular</string> |
|||
</array> |
|||
</customFonts> |
|||
<objects> |
|||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> |
|||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> |
|||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="BeneficiaryDetailHeaderView" customModule="JME_Remit" customModuleProvider="target"> |
|||
<rect key="frame" x="0.0" y="0.0" width="583" height="490"/> |
|||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
|||
<subviews> |
|||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HTO-pZ-QWG"> |
|||
<rect key="frame" x="0.0" y="0.0" width="583" height="456"/> |
|||
<subviews> |
|||
<stackView opaque="NO" contentMode="scaleToFill" alignment="top" spacing="32" translatesAutoresizingMaskIntoConstraints="NO" id="aDS-Ur-z6j"> |
|||
<rect key="frame" x="0.0" y="0.0" width="583" height="456"/> |
|||
<subviews> |
|||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="dRH-kU-ofV"> |
|||
<rect key="frame" x="0.0" y="0.0" width="96" height="147"/> |
|||
<subviews> |
|||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="user_image" translatesAutoresizingMaskIntoConstraints="NO" id="LrN-sh-VUv"> |
|||
<rect key="frame" x="0.0" y="0.0" width="96" height="96"/> |
|||
<constraints> |
|||
<constraint firstAttribute="width" constant="96" id="Eoq-tq-ChW"/> |
|||
<constraint firstAttribute="height" constant="96" id="S4b-RF-PTY"/> |
|||
</constraints> |
|||
</imageView> |
|||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oWf-Ce-WX4"> |
|||
<rect key="frame" x="0.0" y="116" width="96" height="31"/> |
|||
<constraints> |
|||
<constraint firstAttribute="height" constant="31" id="RMf-T7-eWB"/> |
|||
</constraints> |
|||
<state key="normal" title="Button"/> |
|||
<buttonConfiguration key="configuration" style="plain" title="Update"/> |
|||
</button> |
|||
</subviews> |
|||
</stackView> |
|||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="Cqd-2Y-S86"> |
|||
<rect key="frame" x="128" y="0.0" width="455" height="136"/> |
|||
<subviews> |
|||
<stackView opaque="NO" contentMode="scaleToFill" alignment="top" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="CCk-EB-IRl"> |
|||
<rect key="frame" x="0.0" y="0.0" width="455" height="28"/> |
|||
<subviews> |
|||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="avatar" translatesAutoresizingMaskIntoConstraints="NO" id="h3i-Ff-cvM"> |
|||
<rect key="frame" x="0.0" y="0.0" width="24" height="24"/> |
|||
<constraints> |
|||
<constraint firstAttribute="width" constant="24" id="4GE-0k-q3Q"/> |
|||
<constraint firstAttribute="height" constant="24" id="8xJ-lv-h86"/> |
|||
</constraints> |
|||
</imageView> |
|||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="lVO-cb-12f"> |
|||
<rect key="frame" x="32" y="0.0" width="423" height="28"/> |
|||
<subviews> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Name" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5JV-mF-sfQ"> |
|||
<rect key="frame" x="0.0" y="0.0" width="423" height="12"/> |
|||
<fontDescription key="fontDescription" name="FONTSPRINGDEMO-VolteSemiboldRegular" family="FONTSPRING DEMO - Volte Semibold" pointSize="12"/> |
|||
<color key="textColor" red="0.62352941179999999" green="0.62352941179999999" blue="0.62352941179999999" alpha="0.87" colorSpace="calibratedRGB"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Rajesh Sharma" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Mve-d1-oe2"> |
|||
<rect key="frame" x="0.0" y="12" width="423" height="16"/> |
|||
<fontDescription key="fontDescription" name="FONTSPRINGDEMO-VolteSemiboldRegular" family="FONTSPRING DEMO - Volte Semibold" pointSize="16"/> |
|||
<nil key="textColor"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
</subviews> |
|||
</stackView> |
|||
</subviews> |
|||
</stackView> |
|||
<stackView opaque="NO" contentMode="scaleToFill" alignment="top" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="nLI-6r-icB"> |
|||
<rect key="frame" x="0.0" y="36" width="455" height="28"/> |
|||
<subviews> |
|||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="avatar" translatesAutoresizingMaskIntoConstraints="NO" id="dgU-AV-hy1"> |
|||
<rect key="frame" x="0.0" y="0.0" width="24" height="24"/> |
|||
<constraints> |
|||
<constraint firstAttribute="width" constant="24" id="8px-TN-DFx"/> |
|||
<constraint firstAttribute="height" constant="24" id="WGz-4r-arI"/> |
|||
</constraints> |
|||
</imageView> |
|||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="W5h-nA-8vi"> |
|||
<rect key="frame" x="32" y="0.0" width="423" height="28"/> |
|||
<subviews> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Mobile Number" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fsd-2X-Yg1"> |
|||
<rect key="frame" x="0.0" y="0.0" width="423" height="12"/> |
|||
<fontDescription key="fontDescription" name="FONTSPRINGDEMO-VolteSemiboldRegular" family="FONTSPRING DEMO - Volte Semibold" pointSize="12"/> |
|||
<color key="textColor" red="0.62352941179999999" green="0.62352941179999999" blue="0.62352941179999999" alpha="0.87" colorSpace="calibratedRGB"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="9860636112" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eC0-je-pC7"> |
|||
<rect key="frame" x="0.0" y="12" width="423" height="16"/> |
|||
<fontDescription key="fontDescription" name="FONTSPRINGDEMO-VolteSemiboldRegular" family="FONTSPRING DEMO - Volte Semibold" pointSize="16"/> |
|||
<nil key="textColor"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
</subviews> |
|||
</stackView> |
|||
</subviews> |
|||
</stackView> |
|||
<stackView opaque="NO" contentMode="scaleToFill" alignment="top" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="WAL-nn-fmB"> |
|||
<rect key="frame" x="0.0" y="72" width="455" height="28"/> |
|||
<subviews> |
|||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="avatar" translatesAutoresizingMaskIntoConstraints="NO" id="0e3-j0-Rkg"> |
|||
<rect key="frame" x="0.0" y="0.0" width="24" height="24"/> |
|||
<constraints> |
|||
<constraint firstAttribute="height" constant="24" id="4rG-wR-cHd"/> |
|||
<constraint firstAttribute="width" constant="24" id="cLd-Pp-AXF"/> |
|||
</constraints> |
|||
</imageView> |
|||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="0ya-j9-bOy"> |
|||
<rect key="frame" x="32" y="0.0" width="423" height="28"/> |
|||
<subviews> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Relationship" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jRQ-jY-rgv"> |
|||
<rect key="frame" x="0.0" y="0.0" width="423" height="12"/> |
|||
<fontDescription key="fontDescription" name="FONTSPRINGDEMO-VolteSemiboldRegular" family="FONTSPRING DEMO - Volte Semibold" pointSize="12"/> |
|||
<color key="textColor" red="0.62352941179999999" green="0.62352941179999999" blue="0.62352941179999999" alpha="0.87" colorSpace="calibratedRGB"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Brother" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="l7P-Wg-OyY"> |
|||
<rect key="frame" x="0.0" y="12" width="423" height="16"/> |
|||
<fontDescription key="fontDescription" name="FONTSPRINGDEMO-VolteSemiboldRegular" family="FONTSPRING DEMO - Volte Semibold" pointSize="16"/> |
|||
<nil key="textColor"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
</subviews> |
|||
</stackView> |
|||
</subviews> |
|||
</stackView> |
|||
<stackView opaque="NO" contentMode="scaleToFill" alignment="top" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="NUo-GK-jR6"> |
|||
<rect key="frame" x="0.0" y="108" width="455" height="28"/> |
|||
<subviews> |
|||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="avatar" translatesAutoresizingMaskIntoConstraints="NO" id="sMg-xb-OHS"> |
|||
<rect key="frame" x="0.0" y="0.0" width="24" height="24"/> |
|||
<constraints> |
|||
<constraint firstAttribute="width" constant="24" id="Ggd-4P-fj4"/> |
|||
<constraint firstAttribute="height" constant="24" id="v1l-6n-RmD"/> |
|||
</constraints> |
|||
</imageView> |
|||
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="COx-Vo-arU"> |
|||
<rect key="frame" x="32" y="0.0" width="423" height="28"/> |
|||
<subviews> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Location" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8uE-gE-4K5"> |
|||
<rect key="frame" x="0.0" y="0.0" width="423" height="12"/> |
|||
<fontDescription key="fontDescription" name="FONTSPRINGDEMO-VolteSemiboldRegular" family="FONTSPRING DEMO - Volte Semibold" pointSize="12"/> |
|||
<color key="textColor" red="0.62352941179999999" green="0.62352941179999999" blue="0.62352941179999999" alpha="0.87" colorSpace="calibratedRGB"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Kathmandu" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p4q-80-eVy"> |
|||
<rect key="frame" x="0.0" y="12" width="423" height="16"/> |
|||
<fontDescription key="fontDescription" name="FONTSPRINGDEMO-VolteSemiboldRegular" family="FONTSPRING DEMO - Volte Semibold" pointSize="16"/> |
|||
<nil key="textColor"/> |
|||
<nil key="highlightedColor"/> |
|||
</label> |
|||
</subviews> |
|||
</stackView> |
|||
</subviews> |
|||
</stackView> |
|||
</subviews> |
|||
</stackView> |
|||
</subviews> |
|||
</stackView> |
|||
</subviews> |
|||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
|||
<constraints> |
|||
<constraint firstItem="aDS-Ur-z6j" firstAttribute="top" secondItem="HTO-pZ-QWG" secondAttribute="top" id="Abd-zh-uDT"/> |
|||
<constraint firstAttribute="trailing" secondItem="aDS-Ur-z6j" secondAttribute="trailing" id="Nsc-WY-1jQ"/> |
|||
<constraint firstAttribute="bottom" secondItem="aDS-Ur-z6j" secondAttribute="bottom" id="Zjb-eW-UL4"/> |
|||
<constraint firstItem="aDS-Ur-z6j" firstAttribute="leading" secondItem="HTO-pZ-QWG" secondAttribute="leading" id="b0G-zz-yfF"/> |
|||
</constraints> |
|||
</view> |
|||
</subviews> |
|||
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/> |
|||
<color key="backgroundColor" systemColor="systemBackgroundColor"/> |
|||
<constraints> |
|||
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="HTO-pZ-QWG" secondAttribute="trailing" id="C5a-M9-JDU"/> |
|||
<constraint firstItem="HTO-pZ-QWG" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="SW0-iG-8kN"/> |
|||
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="HTO-pZ-QWG" secondAttribute="bottom" id="U25-Aw-1XQ"/> |
|||
<constraint firstItem="HTO-pZ-QWG" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="XZu-Dj-52T"/> |
|||
</constraints> |
|||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> |
|||
<point key="canvasLocation" x="110.68702290076335" y="-91.549295774647888"/> |
|||
</view> |
|||
</objects> |
|||
<resources> |
|||
<image name="avatar" width="57" height="55"/> |
|||
<image name="user_image" width="96" height="96"/> |
|||
<systemColor name="systemBackgroundColor"> |
|||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
|||
</systemColor> |
|||
</resources> |
|||
</document> |
@ -0,0 +1,31 @@ |
|||
// |
|||
|
|||
import UIKit |
|||
|
|||
class BeneficiaryTableViewCell: UITableViewCell { |
|||
|
|||
@IBOutlet weak var indicatorButton: UIButton! |
|||
@IBOutlet weak var walletInfoView: UIView! |
|||
|
|||
static var identifier: String { |
|||
return String(describing: self) |
|||
} |
|||
|
|||
|
|||
override func awakeFromNib() { |
|||
super.awakeFromNib() |
|||
// Initialization code |
|||
indicatorButton.setTitle("", for: .normal) |
|||
walletInfoView.set(cornerRadius: 10) |
|||
} |
|||
|
|||
override func setSelected(_ selected: Bool, animated: Bool) { |
|||
super.setSelected(selected, animated: animated) |
|||
|
|||
// Configure the view for the selected state |
|||
} |
|||
|
|||
@IBAction func selectedButton(_ sender: Any) { |
|||
} |
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue