Skip to content

CertificationModalView.swift에 이미지 렌더링·저장 로직 혼재 #1

@seu11ee

Description

@seu11ee

문제

CertificationModalView.swift 한 파일에 세 가지 책임이 혼재되어 있습니다.

  • CertificationModalView — UI
  • ComposedImageRenderer — 1080×1920 인증사진 합성 로직 (서비스)
  • ImageSaveHelper — 사진 저장 유틸리티 (NSObject 서브클래스)
  • Notification.Name 확장

UI 파일에 비즈니스/서비스 로직이 포함되어 있어 테스트가 불가능하고, 재사용할 수 없는 구조입니다.

해결 방향

  • ComposedImageRendererCertificationImageService 로 별도 파일 분리
  • ImageSaveHelper + Notification.Name 확장 → 별도 파일 분리
  • View는 서비스를 호출하는 역할만 담당

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions