An iOS photo gallery app built with UIKit, RxSwift, and Moya. It displays photos in a Pinterest-style staggered layout, supports pull-to-refresh and pagination, and includes a detail screen.
- πΈ Load photos from Unsplash API
- π§± Custom Staggered Layout (no 3rd party lib)
- π Infinite Scroll with RxSwift
- π₯ Pull-to-Refresh support
- UIKit + MVVM
- RxSwift / RxCocoa / RxRelay
- Moya for API abstraction
Using Swift Package Manager:
RxSwiftRxCocoaMoyaKingfisher(optional: for image loading)
π₯ No third-party UI layout libs used (staggered layout is fully custom).
- Data binding with
BehaviorRelay collectionView.rx.contentOffsetfor infinite scroll- Detail screen uses reactive data flow for UI updates
git clone https://github.com/naylinndev/UnsplashGallery.git cd UnsplashGallery open UnsplashGallery.xcodeproj Install SPM packages (RxSwift, Moya)
Build and run!
