Skip to content

[DESIGN] Button 디자인 컴포넌트 개발 - #9

Merged
woolnd merged 3 commits into
developfrom
design/#7
Jun 17, 2025
Merged

[DESIGN] Button 디자인 컴포넌트 개발#9
woolnd merged 3 commits into
developfrom
design/#7

Conversation

@woolnd

@woolnd woolnd commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

📌 관련 이슈

  1. [DESIGN] Button 디자인 컴포넌트 개발 [DESIGN] Button 디자인 컴포넌트 개발 #7

✨ 이슈 내용

  1. Button 디자인 컴포넌트 개발

📸 코드 및 스크린샷(선택)

  1. BaseButton
// MARK: - BaseButton
class BaseButton: UIButton {
    private var onTap: (() -> Void)?
    
    init(text: String, size: ButtonSize, onTap: (() -> Void)? = nil) {
        self.onTap = onTap
        super.init(frame: .zero)
        
        layer.cornerRadius = size.cornerRadius
        clipsToBounds = true
        setContentHuggingPriority(.required, for: .horizontal)
        translatesAutoresizingMaskIntoConstraints = false
        snp.makeConstraints { $0.height.equalTo(size.height) }
        
        addTarget(self, action: #selector(handleTap), for: .touchUpInside)
    }
    
    @objc private func handleTap() {
        onTap?()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

@woolnd woolnd added the 🎨 Design 에셋 등 디자인 요소 추가 label Jun 17, 2025
@woolnd
woolnd requested a review from YuGeonHui June 17, 2025 07:07

@YuGeonHui YuGeonHui left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

고생하셨스빈다.

import SnapKit

// MARK: - 버튼 사이즈 Enum
enum ButtonSize {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

이건 파일 분리해서 하는게 더 좋을 것 같습니다!!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

넵 확인했습니다!

@woolnd
woolnd merged commit 459e712 into develop Jun 17, 2025
@YuGeonHui
YuGeonHui deleted the design/#7 branch June 18, 2025 14:11
@woolnd woolnd self-assigned this Jun 20, 2025
YuGeonHui added a commit that referenced this pull request Aug 23, 2026
- LocalNotificationPort(Domain) + LocalNotificationAdapter(App, UN import 유일 지점):
  권한 요청은 알람 등록 성공 직후 한 곳(AlarmKit 팝업과 흐름 양끝 분리), 거부 기록
  후 재요청 금지, post는 미허용 시 조용히 no-op (사일런트 푸시 경로 무권한 유지)
- dismiss 폴백: 기록 있으면 advanced/최후통첩/missed alert를 로컬 노티로 대체
  (push-to-start 재생성 금지), DEV 액션시트에 dismiss 기록 토글 추가
- 실패·종료: advanced(actionable:false) → LA missed 전환 + "막차가 지나갔어요"
  (#9 임시 문구) / sessionEnded → 알람 취소 → LA final 종료 → 홈 배너 정리·버튼 리셋
- Home: 실패 배너 고정(카운트다운 중지)·과거 출발 카운트다운 복원 가드·토스트 2종
- 하드닝 점검 7항목 판정(전부 OK) + LA 8시간 제한 한계 주석 보강
- acceptance: Debug/Stage/Release 빌드 + 전 모듈 테스트 218개 + 의존 규칙 검증
  (ActivityKit 3지점·UN 1지점 한정, Domain 순수, Feature→AtchaData 없음)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎨 Design 에셋 등 디자인 요소 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants