Skip to content
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

Merged
merged 8 commits into from
Jan 17, 2022

Conversation

hyun99999
Copy link
Member

🌴 PR 요약

🌱 작업한 브랜치

🌱 작업한 내용

  • 홈뷰 셀 초기화 구현

📌 참고 사항

  • SparkFlake 클래스를 만들었습니다
    SparkFlake(leftDay: 숫자) 를 변수에 저장해서 sparkFlake.~~ 과 같이 사용하시면 될거 같아여!

📮 관련 이슈

@hyun99999 hyun99999 added Feat 새로운 기능 구현 👼타락pOwEr천사현규 크로아서버 환영요 labels Jan 17, 2022
@hyun99999 hyun99999 self-assigned this Jan 17, 2022
Copy link
Member

@yangsubinn yangsubinn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

멋있읍니다... 우리... 힘... 내자..... .. .. 👍🥺

Copy link
Member

@L-j-h-c L-j-h-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다!

Comment on lines +8 to +171
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
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

으아아아아아 분기처리 선배 진짜 수고하셨습니다... 보관함 뷰에서 요긴하게 쓰겠습니당

@hyun99999 hyun99999 merged commit e5d22d0 into TeamSparker:develop Jan 17, 2022
@hyun99999 hyun99999 deleted the feature/#85 branch January 17, 2022 21:00
@hyun99999
Copy link
Member Author

@L-j-h-c @yangsubinn

📌 참고 사항

  • initWithBackButtonTitle : 뒤로가기 + 제목
  • initWithLeftButtonTitle : 좌측버튼 + 제목
  • initWithRightTwoCustomButtons : 홈에서 쓰이는 우측 버튼 두개
  • initWithTwoCustomButtonsTitle : 커스텀 버튼 두개 + 제목

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 👼타락pOwEr천사현규 크로아서버 환영요
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 홈뷰 셀 초기화 구현
3 participants