Skip to content

Commit

Permalink
#73 Fix: 오토레이아웃 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOHYUNLEE08 committed Aug 20, 2024
1 parent 2e3ba4f commit ce745db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Drink-EG/Drink-EG/Resources/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// 화면을 구성하는 UIWindow 인스턴스 생성
let window = UIWindow(windowScene: windowScene)
// 실제 첫 화면이 되는 MainViewController 인스턴스 생성
let vc = EnterLoginViewController()
let vc = WriteNoteViewController()
// NavigationController을 사용할 경우, MainViewController를 rootViewController로 갖는 NavigationController을 생성해야한다.
let navigationController = UINavigationController(rootViewController: vc)
navigationController.isNavigationBarHidden = true
Expand Down
2 changes: 1 addition & 1 deletion Drink-EG/Drink-EG/Sources/Models/PolygonChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PolygonChartView: UIButton {
for _ in 0 ..< step {
stepLinePaths.append(CustomUIBezierPath())
}
let heightMaxValue = rect.height / 2 * 0.7 // RadarChartView영역내에 모든 그림이 그려지도록 max value가 그려질 높이
let heightMaxValue = rect.height / 2 * 0.5 // RadarChartView영역내에 모든 그림이 그려지도록 max value가 그려질 높이
let heightStep = heightMaxValue / CGFloat(step) // 1단계에 해당하는 높이
let cx = rect.midX
let cy = rect.midY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class RatingViewController: UIViewController {
make.width.equalTo(titleSize.width+37)
make.height.greaterThanOrEqualTo(33)

if i % 4 == 0 {
if i % 3 == 0 {
// 첫 번째 버튼이거나 새로운 줄의 첫 번째 버튼
make.leading.equalTo(tasteView.snp.leading).offset(13)
if i == 0 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class WriteNoteViewController: UIViewController {
func setuptastingnoteLabelConstraints() { // Label의 제약 조건을 설정하는 함수
tastingnoteLabel.snp.makeConstraints{ make in
make.top.equalTo(contentView.safeAreaLayoutGuide.snp.top).offset(20)
make.leading.equalTo(contentView.safeAreaLayoutGuide.snp.leading).offset(27)
make.leading.equalTo(contentView.safeAreaLayoutGuide.snp.leading).offset(25)
}
}

Expand Down

0 comments on commit ce745db

Please sign in to comment.