문제
CertificationModalView.swift 한 파일에 세 가지 책임이 혼재되어 있습니다.
CertificationModalView — UI
ComposedImageRenderer — 1080×1920 인증사진 합성 로직 (서비스)
ImageSaveHelper — 사진 저장 유틸리티 (NSObject 서브클래스)
Notification.Name 확장
UI 파일에 비즈니스/서비스 로직이 포함되어 있어 테스트가 불가능하고, 재사용할 수 없는 구조입니다.
해결 방향
ComposedImageRenderer → CertificationImageService 로 별도 파일 분리
ImageSaveHelper + Notification.Name 확장 → 별도 파일 분리
- View는 서비스를 호출하는 역할만 담당