Skip to content

Example UIKit/SwiftUI Photo Lib app, built using MVVM architecture

License

Notifications You must be signed in to change notification settings

m4rr/iOS-macOS-MVVM-Demo

Repository files navigation

iOS/macOS MVVM Demo App

 

Example UIKit/SwiftUI Photo Lib app, built using MVVM architecture.

Xcode project contains 3 targets:

  • PhotoLib -- a UIKit iOS app
  • iOS -- a SwiftUI iOS app
  • macOS -- a SwiftUI macOS app

All targets share same business logic.

Some Highlights

  • MVVM architecture
  • Swift 5, deployment target - iOS 13
  • App is fetching free photos from open photo lib API
  • High performance: low memory usage, 60 FPS, low battery usage
  • Simple solution, not over-engineered
  • Image's shadow + corner radius!
  • Safe Area support
  • No 3rd party frameworks
  • Crash free

Lisense

MIT

Author

© Marat Saytakov, 2020.