Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

리소스 관리 라이브러리 도입 #26

Closed
yeahg-dev opened this issue Feb 18, 2023 · 0 comments
Closed

리소스 관리 라이브러리 도입 #26

yeahg-dev opened this issue Feb 18, 2023 · 0 comments
Assignees
Labels
Feature 새로운 기능 Resource 리소스 괸리

Comments

@yeahg-dev
Copy link
Owner

yeahg-dev commented Feb 18, 2023

🎯 목적

  • 리소스(Image, Color, .strings)를 Swift 타입으로 자동 생성하고 중복 작업을 제거
  • 컴파일 타임에 문자열로 초기화 할 때 생기는 크래시 체크

💡 구현 아이디어

1. 라이브러리 선택

지원하는 타입 R.Swift SwiftGen
Asset Catalog ☑️ O O
Color ☑️ O O
CoreData X O
Files O O
Font O O
InterfaceBuilerFile (Storyboard) O O
JSON and YAML files X O
Plists ☑️ X O
.strings ☑️ O O
Nibs O X
ReusableCell O X
Segue O X
  • 변환하고자하는 타입을 모두 지원하고, 안정적으로 운용가능하다고 판단하여 SwiftGen을 선택

2. 구현 방법

  • Homebrew로 설치
  • Config파일에 변환하고자하는 파일을 YAML 문법에 맞춰 작성

👩🏻‍💻 결과와 피드백

  • 복적인 단순 작업 제거에 따른 개발 편리성 증가
  • 컴파일러가 파일로 부터 타입을 생성하기 때문에 런타임 크래시도 방지 효과
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 새로운 기능 Resource 리소스 괸리
Projects
Status: Done
Development

No branches or pull requests

1 participant