Skip to content

Commit

Permalink
Improved wallet view cell
Browse files Browse the repository at this point in the history
  • Loading branch information
vikmeup committed Mar 12, 2018
1 parent 5ffa775 commit b25fe84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Trust/Accounts/ViewModels/AccountsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AccountsViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
tableView.rowHeight = UITableViewAutomaticDimension
tableView.estimatedRowHeight = 55
tableView.estimatedRowHeight = 60
tableView.register(R.nib.accountViewCell(), forCellReuseIdentifier: R.nib.accountViewCell.name)
}

Expand Down
31 changes: 15 additions & 16 deletions Trust/Accounts/Views/AccountViewCell.xib
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14105" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand All @@ -21,12 +20,12 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="JUd-EF-Sra">
<rect key="frame" x="36" y="0.0" width="298" height="59.5"/>
<rect key="frame" x="36" y="0.0" width="298" height="58"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="BUP-CU-bxN">
<rect key="frame" x="0.0" y="3.5" width="52.5" height="52.5"/>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="BUP-CU-bxN">
<rect key="frame" x="0.0" y="12" width="37" height="34"/>
<constraints>
<constraint firstAttribute="width" secondItem="BUP-CU-bxN" secondAttribute="height" id="P1u-HX-TEd"/>
<constraint firstAttribute="height" constant="34" id="hic-Fd-JLF"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
Expand All @@ -35,7 +34,7 @@
</userDefinedRuntimeAttributes>
</imageView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillProportionally" alignment="top" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="2t2-qW-Lcu">
<rect key="frame" x="62.5" y="11.5" width="176.5" height="36.5"/>
<rect key="frame" x="47" y="10.5" width="192" height="36.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-- ETH" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="scJ-RY-qk3">
<rect key="frame" x="0.0" y="0.0" width="47" height="18"/>
Expand All @@ -44,25 +43,25 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0xdDFFF2b78463AB1cA781e853BB888FDfd06083d3" textAlignment="natural" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZWW-wY-XEU">
<rect key="frame" x="0.0" y="23" width="176.5" height="13.5"/>
<rect key="frame" x="0.0" y="23" width="192" height="13.5"/>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" distribution="fillProportionally" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="wMR-ps-QHM">
<rect key="frame" x="249" y="19" width="49" height="22"/>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" alignment="center" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="wMR-ps-QHM">
<rect key="frame" x="249" y="18" width="49" height="22"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" image="glasses" translatesAutoresizingMaskIntoConstraints="NO" id="mbU-gV-kxo">
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="glasses" translatesAutoresizingMaskIntoConstraints="NO" id="mbU-gV-kxo">
<rect key="frame" x="0.0" y="2" width="18" height="18"/>
<color key="tintColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="width" priority="999" constant="18" id="JBT-UD-abn"/>
<constraint firstAttribute="height" priority="999" constant="18" id="UFk-ew-jRu"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" horizontalCompressionResistancePriority="749" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="infoLight" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0Io-0E-DkX">
<button opaque="NO" contentMode="scaleToFill" horizontalCompressionResistancePriority="749" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="infoLight" showsTouchWhenHighlighted="YES" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0Io-0E-DkX">
<rect key="frame" x="28" y="0.0" width="21" height="22"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="luV-hy-3Li"/>
Expand All @@ -77,13 +76,13 @@
</stackView>
</subviews>
<constraints>
<constraint firstItem="BUP-CU-bxN" firstAttribute="top" secondItem="JUd-EF-Sra" secondAttribute="top" constant="4" id="1U2-Wn-be5"/>
<constraint firstItem="BUP-CU-bxN" firstAttribute="top" secondItem="JUd-EF-Sra" secondAttribute="top" constant="12" id="1U2-Wn-be5"/>
<constraint firstAttribute="height" priority="999" constant="55" id="1ZN-y6-RDM"/>
<constraint firstAttribute="bottom" secondItem="BUP-CU-bxN" secondAttribute="bottom" constant="4" id="y12-Cd-Pet"/>
<constraint firstAttribute="bottom" secondItem="BUP-CU-bxN" secondAttribute="bottom" constant="12" id="y12-Cd-Pet"/>
</constraints>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Sdn-a4-wyz">
<rect key="frame" x="16" y="26" width="8" height="8"/>
<rect key="frame" x="16" y="25" width="8" height="8"/>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="8" id="B3m-hl-1c2"/>
Expand Down

0 comments on commit b25fe84

Please sign in to comment.