-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] #85 - 홈뷰 셀 초기화 구현 #94
Conversation
…rker#85` # Conflicts: # Spark-iOS/Spark-iOS.xcodeproj/project.pbxproj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
멋있읍니다... 우리... 힘... 내자..... .. .. 👍🥺
…rker#85` # Conflicts: # Spark-iOS/Spark-iOS/Source/SceneDelegate.swift
- 몇개 붙여서 예시를 넣어뒀어용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다!
return "일주일 넘겨보자!" | ||
case .day58: | ||
return "절반을 향해 달려!" | ||
case .day32: | ||
return "반도 안 남았어!" | ||
case .day6: | ||
return "조금만 더 힘내" | ||
case .dDay: | ||
return "오늘이면 끝!" | ||
} | ||
} | ||
|
||
/// 습관방 배경 flake | ||
public func sparkFlakeHabitBackground() -> UIImage? { | ||
switch state { | ||
case .day66: | ||
return UIImage(named: "property1BgHabitroomSparkflake1") | ||
case .day65: | ||
return UIImage(named: "property1BgHabitroomSparkflake1") | ||
case .day62: | ||
return UIImage(named: "property1BgHabitroomSparkflake2") | ||
case .day58: | ||
return UIImage(named: "property1BgHabitroomSparkflake3") | ||
case .day32: | ||
return UIImage(named: "property1BgHabitroomSparkflake4") | ||
case .day6: | ||
return UIImage(named: "property1BgHabitroomSparkflake5") | ||
case .dDay: | ||
return UIImage(named: "property1BgHabitroomSparkflake6") | ||
} | ||
} | ||
|
||
/// 진행중 보관함 flake | ||
public func sparkFlakeGoingStorage() -> UIImage? { | ||
switch state { | ||
case .day66: | ||
return UIImage(named: "property1MyboxCardOngoingSparkflake1") | ||
case .day65: | ||
return UIImage(named: "property1MyboxCardOngoingSparkflake1") | ||
case .day62: | ||
return UIImage(named: "property1MyboxCardOngoingSparkflake2") | ||
case .day58: | ||
return UIImage(named: "property1MyboxCardOngoingSparkflake3") | ||
case .day32: | ||
return UIImage(named: "property1MyboxCardOngoingSparkflake4") | ||
case .day6: | ||
return UIImage(named: "property1MyboxCardOngoingSparkflake5") | ||
case .dDay: | ||
return UIImage(named: "property1MyboxCardOngoingSparkflake6") | ||
} | ||
} | ||
|
||
/// 미완료 보관함 flake | ||
public func sparkFlakeFailStorage() -> UIImage? { | ||
switch state { | ||
case .day66: | ||
return UIImage(named: "property1MyboxCardFailedSparkflake1") | ||
case .day65: | ||
return UIImage(named: "property1MyboxCardFailedSparkflake1") | ||
case .day62: | ||
return UIImage(named: "property1MyboxCardFailedSparkflake2") | ||
case .day58: | ||
return UIImage(named: "property1MyboxCardFailedSparkflake3") | ||
case .day32: | ||
return UIImage(named: "property1MyboxCardFailedSparkflake4") | ||
case .day6: | ||
return UIImage(named: "property1MyboxCardFailedSparkflake5") | ||
case .dDay: | ||
return UIImage(named: "property1MyboxCardFailedSparkflake6") | ||
} | ||
} | ||
|
||
/// 완료 보관함 flake | ||
public func sparkFlakeCompleteStorage() -> UIImage? { | ||
switch state { | ||
default: | ||
return UIImage(named: "myboxCardCompleteSparkflake") | ||
} | ||
} | ||
|
||
/// flaek color | ||
public func sparkFlakeColor() -> UIColor { | ||
switch state { | ||
case .day66: | ||
return .sparkMostLightPinkred | ||
case .day65: | ||
return .sparkMostLightPinkred | ||
case .day62: | ||
return .sparkMoreLightPinkred | ||
case .day58: | ||
return .sparkLightPinkred | ||
case .day32: | ||
return .sparkBrightPinkred | ||
case .day6: | ||
return .sparkPinkred | ||
case .dDay: | ||
return .sparkDarkPinkred | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
으아아아아아 분기처리 선배 진짜 수고하셨습니다... 보관함 뷰에서 요긴하게 쓰겠습니당
📌 참고 사항
|
🌴 PR 요약
🌱 작업한 브랜치
🌱 작업한 내용
📌 참고 사항
SparkFlake(leftDay: 숫자)
를 변수에 저장해서sparkFlake.~~
과 같이 사용하시면 될거 같아여!📮 관련 이슈