-
Notifications
You must be signed in to change notification settings - Fork 1
[FEAT] 홈 - 장소 이미지 색상 추출 및 그림자 추가 (#158) #163
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
Conversation
cirtuare
left a comment
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.
😽🍀 복잡하다 복잡해.. 고생했숨당 ~~~
| switch self { | ||
| case .buttonGlassDefault, .buttonGlassPressed, .buttonGlassSelected, .buttonGlassDisabled, .toastGlass, .gradientGlass, .noImageErrorGlass: | ||
| return 0.2 | ||
| case .bottomSheetGlass, .alertGlass, .actionSheetGlass, .needLoginErrorGlass: | ||
| case .alertGlass, .actionSheetGlass, .needLoginErrorGlass: | ||
| return 0.4 | ||
| case .bottomSheetGlass: | ||
| return 0.6 | ||
| case .backgroundGlass: | ||
| return 1 | ||
| } | ||
| } | ||
|
|
||
| var blurEffectStyle: UIBlurEffect.Style { | ||
| switch self { | ||
| case .buttonGlassDisabled: | ||
| return .systemUltraThinMaterialLight | ||
| case .buttonGlassDefault, .actionSheetGlass, .noImageErrorGlass: | ||
| return .systemThinMaterialLight | ||
| case .buttonGlassPressed: | ||
| return .systemThickMaterialLight | ||
| case .buttonGlassSelected: | ||
| return .systemMaterialLight | ||
| case .buttonGlassDisabled: | ||
| return .systemUltraThinMaterialLight | ||
| case .toastGlass, .needLoginErrorGlass, .alertGlass: | ||
| return .systemThinMaterialDark | ||
| case .buttonGlassPressed: | ||
| return .systemThickMaterialLight | ||
| case .gradientGlass: | ||
| return .systemUltraThinMaterialDark | ||
| case .backgroundGlass, .bottomSheetGlass: | ||
| case .toastGlass, .needLoginErrorGlass, .alertGlass, .backgroundGlass, .bottomSheetGlass: | ||
| return .systemThinMaterialDark | ||
| } |
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.
🐿️
전부 디자인이랑 합의된 사항들 맞을까요!!
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.
네 맞습니다! 특별히 변경한 건 없고,
blurIntensity 부분에서 bottomSheetGlass만 0.4 -> 0.6으로 변경했습니다.
blurEffectStyle 부분은 light -> dark, thin -> think 순으로 정렬만 했어요!
Merge branch 'develop' into feature/#158
🐿️ Pull Requests
🪵 작업 브랜치
🥔 작업 내용
🚨 참고 사항
bgImage는 cornerRadius 때문에
clipsToBounds = true여야 하기 때문에 여기에 그림자를 넣으면 그림자가 clip되는 문제가 있었습니다. 이에 shadowView를 별도로 분리했습니다.📸 스크린샷
💥 To be sure
🌰 Resolve issue