Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
변경 사항 요약
Popup 모듈 추가
PopupLocalRepository.swift
: 로컬 팝업 저장소 인터페이스 정의PopupServerRepository.swift
: 서버 팝업 저장소 인터페이스 정의PopupUseCase.swift
: 팝업 관련 비즈니스 로직 구현LocalPopup.swift
: 로컬 팝업 모델 정의PopupModel.swift
: 팝업 모델 정의 및 비즈니스 로직 포함ServerPopup.swift
: 서버 팝업 모델 정의LiveDependencies.swift
: 팝업 관련 의존성 주입 설정PopupAPIRepository.swift
: 서버 팝업 저장소 구현PopupUserDefaultsRepository.swift
: UserDefaults를 활용한 로컬 팝업 저장소 구현PopupViewModel.swift
: 팝업 뷰 모델 구현PopupScene.swift
: 팝업 화면 구현PopupView.swift
: 팝업 뷰 구현PopupTests.swift
: 팝업 관련 테스트 추가Localizable.strings
: 다국어 지원을 위한 문자열 리소스 추가유틸리티 추가
OnLoadModifier.swift
: 뷰가 로드될 때 비동기 작업을 수행할 수 있는 Modifier 추가프로젝트 파일 수정
Project.swift
: Popup 모듈 및 SwiftUIUtility 모듈 추가기타
ContentView.swift
: 팝업 오버레이 추가TimetableScene.swift
: onLoad Modifier 사용으로 변경추가 설명
PopupUseCase
는 서버와 로컬 저장소의 팝업 데이터를 병합하여 최종적으로 사용자에게 표시할 팝업 목록을 생성합니다.OnLoadModifier
는 SwiftUI의task
와 유사하지만, 뷰가 처음 로드될 때 한 번만 실행되도록 합니다.