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.
Screenshots 📸
고민, 과정, 근거 💬
DesignSystem 모듈화
App Target 내부에 있던 DesignSystem을 외부 패키지로 분리했습니다.
각 화면마다 데모앱을 실행할 때 DesignSystem을 일일히 구현하는 것을 방지하기 위함입니다.
대신, App Target에 Font를 설정했을 때는 Info.plist로 설정하기만 하면 됐으나, 폰트파일이 외부패키지로 이동하게 되면서 Info.plist 대신 다른 방법을 찾아야 했습니다.
그래서 커스텀 폰트를 패키지에 설정하는 법[1]이라는 블로그 글을 참고하여 적용했습니다.
테스트 결과 정상작동합니다!
textStyle(_:)에서 font(_:)로 수정
SwiftUI에서 사용하는 font 메서드를 그대로 overloading할 수 있도록 설정했습니다.
References 📋