Skip to content

Commit

Permalink
Fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
aydenp committed Dec 4, 2017
1 parent 1339a50 commit b524027
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
16 changes: 8 additions & 8 deletions Bank/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,17 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<view key="tableHeaderView" contentMode="scaleToFill" id="BCK-rc-BfJ" customClass="AccountHeaderView" customModule="Bank" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="370"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="374"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="drY-yl-DdM">
<rect key="frame" x="0.0" y="192.5" width="375" height="177.5"/>
<rect key="frame" x="0.0" y="192.5" width="375" height="181.5"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NyN-jc-QkS">
<rect key="frame" x="0.0" y="-0.5" width="375" height="134"/>
<rect key="frame" x="0.0" y="-0.5" width="375" height="138"/>
<subviews>
<activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="gray" translatesAutoresizingMaskIntoConstraints="NO" id="abw-PF-ErW">
<rect key="frame" x="177.5" y="57.5" width="20" height="20"/>
<rect key="frame" x="177.5" y="59.5" width="20" height="20"/>
</activityIndicatorView>
</subviews>
<constraints>
Expand All @@ -170,7 +170,7 @@
</constraints>
</view>
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="Hae-2f-zgd" customClass="RangeSegmentedControl" customModule="Bank" customModuleProvider="target">
<rect key="frame" x="14" y="143.5" width="347" height="29"/>
<rect key="frame" x="14" y="147.5" width="347" height="29"/>
<segments>
<segment title="Value 1"/>
<segment title="Value 2"/>
Expand Down Expand Up @@ -225,7 +225,7 @@
</subviews>
</stackView>
<pageControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" hidesForSinglePage="YES" defersCurrentPageDisplay="YES" numberOfPages="1" translatesAutoresizingMaskIntoConstraints="NO" id="7N1-VT-en8">
<rect key="frame" x="-4499999832.5" y="-55" width="9000000000" height="16"/>
<rect key="frame" x="-647999832.5" y="-55" width="1296000000" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="pkX-69-Bca"/>
</constraints>
Expand Down Expand Up @@ -260,12 +260,12 @@
</connections>
</view>
<view key="tableFooterView" contentMode="scaleToFill" id="5ty-Ac-eji">
<rect key="frame" x="0.0" y="442" width="375" height="1"/>
<rect key="frame" x="0.0" y="446" width="375" height="1"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</view>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="Transaction" id="f32-jP-FIA" customClass="TransactionCell" customModule="Bank" customModuleProvider="target">
<rect key="frame" x="0.0" y="398" width="375" height="44"/>
<rect key="frame" x="0.0" y="402" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="f32-jP-FIA" id="zc7-a0-ArG">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
Expand Down
3 changes: 0 additions & 3 deletions Bank/Views/AccountHeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,12 @@ class AccountHeaderView: UIView {
// Setup chart
chart = Chart(frame: chartContainerView.bounds)
chart.autoresizingMask = [.flexibleWidth, .flexibleHeight]
chart.clipsToBounds = true
chart.gridColor = .clear
chart.axesColor = .clear
chart.highlightLineColor = .lightGray
chart.lineWidth = 3
chart.labelFont = .systemFont(ofSize: 0)
chart.labelColor = .clear
chart.topInset = 0
chart.bottomInset = 0
chartContainerView.addSubview(chart)
chartSegmentedControl.removeAllSegments()
ChartViewRange.allOptions.enumerated().forEach {
Expand Down
3 changes: 1 addition & 2 deletions Bank/Views/RangeSegmentedControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ class RangeSegmentedControl: UISegmentedControl {
}

private func setup() {
heightAnchor.constraint(equalToConstant: 34).isActive = true
selectionView = UIView()
selectionView.translatesAutoresizingMaskIntoConstraints = false
addSubview(selectionView)
selectionView.heightAnchor.constraint(equalToConstant: 2).isActive = true
selectionViewLeftAnchor = selectionView.leftAnchor.constraint(equalTo: leftAnchor)
selectionViewLeftAnchor.isActive = true
selectionView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
selectionView.topAnchor.constraint(equalTo: bottomAnchor, constant: 3).isActive = true
selectionViewWidthAnchor = selectionView.widthAnchor.constraint(equalToConstant: 0)
selectionViewWidthAnchor.isActive = true
setColours()
Expand Down

0 comments on commit b524027

Please sign in to comment.