Repository에서 디바이스로부터 모든 이미지를 받아와서 ViewModel로 넘겨 줍니다. ViewModel은 화면 상태와 관련된 business logic의 책임을 담당합니다. Business Logic으로는 한 row에 몇개의 column 사진들이 보여야하는지, PHCachingImageManager로 PHAsset의 이미지들을 어떻게 UIImage로 만들어오는지 등을 담당하게 하였습니다. 이러한 과정들은 어떻게 수많은 유저의 이미지들을 메모리 이슈 없이 가져올지를 위해 고안된것입니다. 이런식으로 책임 분리가 명확하게 해서 유지보수를 유리하게 했습니다.
photolibrary's Introduction
photolibrary's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.