Skip to content

PhotoSelectionViewModel이 UIKit 타입(UIImagePickerController.SourceType)을 공개 프로퍼티로 노출 #2

@seu11ee

Description

@seu11ee

문제

PhotoSelectionViewModelsourceType 프로퍼티가 UIImagePickerController.SourceType으로 선언되어 있습니다.

@Published var sourceType: UIImagePickerController.SourceType = .photoLibrary

ViewModel이 UIKit의 구현 세부사항을 알고 있는 구조입니다. PhotoSourceType enum이 이미 정의되어 있는데 활용되지 않고 있습니다.

해결 방향

  • sourceType 프로퍼티를 private으로 변경
  • 공개 API는 PhotoSourceType만 사용하도록 수정
  • selectedSourceType: PhotoSourceType 을 공개 프로퍼티로 노출

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