@@ -12,12 +12,14 @@ import UIKit
1212class ReportDetailViewController : BaseViewController < ReportDetailViewModel > {
1313 private enum Layout {
1414 static let horizontalMargin : CGFloat = 20
15+ static let scrollViewTopSpacing : CGFloat = 48
1516 static let photoStackViewSpacing : CGFloat = 8
1617 static let photoStackViewTopSpacing : CGFloat = 14
1718 static let photoSize : CGFloat = 74
1819 static let contentStackViewSpacing : CGFloat = 28
1920 static let contentStackViewTopSpacing : CGFloat = 23
20- static let reportStatusViewTopSpacing : CGFloat = 74
21+ static let contentStackViewBottomSpacing : CGFloat = 40
22+ static let reportStatusViewTopSpacing : CGFloat = 20
2123 static let reportStatusViewWidth : CGFloat = 65
2224 static let reportStatusViewHeight : CGFloat = 26
2325 static let dateLabelTopSpacing : CGFloat = 6
@@ -97,7 +99,8 @@ class ReportDetailViewController: BaseViewController<ReportDetailViewModel> {
9799 }
98100
99101 scrollView. snp. makeConstraints { make in
100- make. edges. equalTo ( safeArea)
102+ make. top. equalTo ( safeArea) . offset ( Layout . scrollViewTopSpacing)
103+ make. horizontalEdges. bottom. equalToSuperview ( )
101104 }
102105
103106 contentView. snp. makeConstraints { make in
@@ -125,7 +128,7 @@ class ReportDetailViewController: BaseViewController<ReportDetailViewModel> {
125128 contentStackView. snp. makeConstraints { make in
126129 make. top. equalTo ( photoStackView. snp. bottom) . offset ( Layout . contentStackViewTopSpacing)
127130 make. horizontalEdges. equalTo ( contentView) . inset ( Layout . horizontalMargin)
128- make. bottom. equalToSuperview ( ) . offset ( - 40 )
131+ make. bottom. equalToSuperview ( ) . offset ( - Layout . contentStackViewBottomSpacing )
129132 }
130133 }
131134
0 commit comments