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.
🌱 Challenge 정보
Guiding Questions
Guiding Activities
정의: A property wrapper type for an observable object that a parent or ancestor view supplies.
Q1: 여기에서 @EnvironmentObject가 작동하는 방식을 알려줘

Q2: 내 코드 외적으로 @EnvironmentObject를 쓸때 자주 같이 사용되는 코드들이 있을까?
- @EnvironmentObject란?
- SwiftUI에서 앱 전체 또는 상위 뷰에서 제공한 객체를 하위 뷰에서 접근할 수 있도록 하는 속성 래퍼.
- 작동 방식
- 1. 공유할 객체 선언: 작성되어 있는 MistakeManager는 ObservableObject를 채택한 클래스이다.
- @published var 와 함께 쓰이고, @published 속성의 바뀌면 뷰가 자동으로 업데이트된다.
그렇지 않으면 앱이 실행 중 크래시 납니다.

-@EnvironmentObject를 쓰는 이유
- 의존성 주입: 뷰 안에서 직접 객체를 만들지 않아도 된다.
- 데이터 공유: 여러 뷰에서 같은 데이터를 사용 가능
- 자동 업데이트: 내부 데이터(@published)가 바뀌면 UI 자동 반영
자주 쓰는 조합
📌 Check List
✨ 나의 Finding & Synthesis
✅ 팀원 확인
⚡ 리뷰어 확인