diff --git a/Bank/Base.lproj/Main.storyboard b/Bank/Base.lproj/Main.storyboard index ea10953..c04d0d8 100644 --- a/Bank/Base.lproj/Main.storyboard +++ b/Bank/Base.lproj/Main.storyboard @@ -151,17 +151,17 @@ - + - + - + @@ -170,7 +170,7 @@ - + @@ -225,7 +225,7 @@ - + @@ -260,12 +260,12 @@ - + - + diff --git a/Bank/Views/AccountHeaderView.swift b/Bank/Views/AccountHeaderView.swift index 7ecc7be..6acc463 100644 --- a/Bank/Views/AccountHeaderView.swift +++ b/Bank/Views/AccountHeaderView.swift @@ -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 { diff --git a/Bank/Views/RangeSegmentedControl.swift b/Bank/Views/RangeSegmentedControl.swift index e0a8476..fd541ec 100644 --- a/Bank/Views/RangeSegmentedControl.swift +++ b/Bank/Views/RangeSegmentedControl.swift @@ -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()