Skip to content

Commit b29bee5

Browse files
authored
Merge pull request #87 from DeveloperAcademy-POSTECH/feat/#42
Feat: Button 영역 수정
2 parents 6542b26 + d6d5b64 commit b29bee5

File tree

6 files changed

+22
-17
lines changed

6 files changed

+22
-17
lines changed

MC2-Team3-Pilling.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@
550550
CODE_SIGN_STYLE = Automatic;
551551
CURRENT_PROJECT_VERSION = 1;
552552
DEVELOPMENT_ASSET_PATHS = "\"MC2-Team3-Pilling/Preview Content\"";
553-
DEVELOPMENT_TEAM = F5WP2FDW4U;
553+
DEVELOPMENT_TEAM = 223UXY9RY6;
554554
ENABLE_HARDENED_RUNTIME = YES;
555555
ENABLE_PREVIEWS = YES;
556556
GENERATE_INFOPLIST_FILE = YES;
@@ -591,7 +591,7 @@
591591
CODE_SIGN_STYLE = Automatic;
592592
CURRENT_PROJECT_VERSION = 1;
593593
DEVELOPMENT_ASSET_PATHS = "\"MC2-Team3-Pilling/Preview Content\"";
594-
DEVELOPMENT_TEAM = F5WP2FDW4U;
594+
DEVELOPMENT_TEAM = 223UXY9RY6;
595595
ENABLE_HARDENED_RUNTIME = YES;
596596
ENABLE_PREVIEWS = YES;
597597
GENERATE_INFOPLIST_FILE = YES;

MC2-Team3-Pilling.xcodeproj/xcshareddata/xcschemes/MC2-Team3-Pilling.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
33
LastUpgradeVersion = "1530"
4-
version = "1.7">
4+
version = "1.8">
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES"

MC2-Team3-Pilling/Extentsion/main+extension.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ extension MainView{
1414
print("today-1:\(sortedDay[today-1].status)")
1515
if today == 1 && sortedDay[today - 1].status == 0 { // 첫째날 -> 약먹어야함
1616
statusNum = 1
17-
} else if sortedDay[today - 1].status == 0 && sortedDay[today - 2].status == 1 { // 약먹어야함
17+
} else if sortedDay[today - 1].status == 0{ // 약먹어야함
1818
statusNum = 1
19-
} else if sortedDay[today - 1].status == 1 && sortedDay[today - 2].status == 0 { // 약먹음 -> 윙크
19+
} else if sortedDay[today - 1].status == 1{ // 약먹음 -> 윙크
2020
statusNum = 6
2121
}
2222
else if sortedDay[today - 1].status == 1 { // 약먹음 -> 윙크
@@ -85,12 +85,9 @@ extension MainView{
8585

8686
func makeBody(configuration: Configuration) -> some View {
8787
configuration.label
88-
.padding(.vertical, 25)
89-
.frame(maxWidth: .infinity)
9088
.background(isDisabled ? .customGray : .customGreen)
91-
.clipShape(RoundedRectangle(cornerRadius: 20))
92-
.foregroundColor(.black)
9389
.opacity(configuration.isPressed ? 0.8 : 1.0)
90+
.clipShape(RoundedRectangle(cornerRadius: 20))
9491
}
9592
}
9693

MC2-Team3-Pilling/View/ChooseStatusView.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,13 @@ struct ChooseStatusView: View {
145145
Text("수정")
146146
.font(.title3)
147147
.bold()
148+
.padding(.vertical, 25)
149+
.frame(maxWidth: .infinity)
150+
.background(.customGreen)
151+
.clipShape(RoundedRectangle(cornerRadius: 20))
152+
.foregroundColor(.black)
148153
})
149-
.padding(.vertical, 25)
150-
.frame(maxWidth: .infinity)
151-
.background(.customGreen)
152-
.clipShape(RoundedRectangle(cornerRadius: 20))
153-
.foregroundColor(.black)
154+
154155

155156
}
156157
.padding(25)

MC2-Team3-Pilling/View/MainView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,16 @@ struct MainView: View {
212212
}, label: {
213213
Text("잔디 심기")
214214
.largeBold()
215+
.padding(.vertical, 25)
216+
.frame(maxWidth: .infinity)
217+
.foregroundColor(.black)
218+
219+
215220
})
216221
.buttonStyle(CustomButtonStyle(isDisabled: sortedDay[today-1].status != 0))
217222
.disabled(sortedDay[today-1].status != 0)
218223

224+
219225
}
220226
.padding()
221227
// 알람 시간(type: Date)을 alarmTime에 넘겨주세요

MC2-Team3-Pilling/View/OnboardingFirstView.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ struct OnboardingFirstView: View {
112112
}, label: {
113113
Text("다음으로")
114114
.largeBold()
115+
116+
.foregroundColor(.black)
117+
.padding(.vertical, 25)
118+
.frame(maxWidth: .infinity)
115119
})
116-
.padding(.vertical, 25)
117-
.frame(maxWidth: .infinity)
118120
.background(selectedPill == nil ? Color.customGray : Color.customGreen)
119121
.clipShape(RoundedRectangle(cornerRadius: 20))
120-
.foregroundColor(.black)
121122
.padding()
122123
.disabled(selectedPill == nil)
123124
}

0 commit comments

Comments
 (0)