Skip to content

Commit 3cda60b

Browse files
committed
Refactor: RoutineView, SubRoutineButton Layout 조정
1 parent 74c355d commit 3cda60b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Projects/Presentation/Sources/Home/View/Component/RoutineView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Created by 최정인 on 7/18/25.
66
//
77

8+
import SnapKit
89
import UIKit
910

1011
protocol RoutineViewDelegate: AnyObject {
@@ -142,6 +143,7 @@ final class RoutineView: UIView {
142143
}, for: .touchUpInside)
143144
subRoutineStackView.addArrangedSubview(subRoutineView)
144145
subRoutineView.snp.makeConstraints { make in
146+
make.horizontalEdges.equalToSuperview()
145147
make.height.equalTo(Layout.subRoutineViewHeight)
146148
}
147149
}

Projects/Presentation/Sources/Home/View/Component/SubRoutineButton.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Created by 최정인 on 7/18/25.
66
//
77

8+
import SnapKit
89
import UIKit
910

1011
final class SubRoutineButton: UIButton {
@@ -57,6 +58,7 @@ final class SubRoutineButton: UIButton {
5758
routineLabel.snp.makeConstraints { make in
5859
make.centerY.equalToSuperview()
5960
make.leading.equalTo(checkButton.snp.trailing).offset(Layout.routineLabelLeadingSpacing)
61+
make.trailing.equalToSuperview()
6062
}
6163
}
6264

0 commit comments

Comments
 (0)