Skip to content

A sample iOS project for SwiftUI, MVVM, clean code, modular architecture, Realm, ContentProvider, unit testing.

Notifications You must be signed in to change notification settings

ShabanKamell/Contacts-SwiftUI

Repository files navigation

Contacts - SwiftUI

Contacts app represents a real world app example. it provides a fairly complex set of functionalities. It's a suitable showcase for all the advantages that SwiftUI, Combine, and modular architecture bring. It has all features that would make it a modular, scalable, testable and maintainable app.

App Logic

  • The app displays the list of user’s contacts that are saved in Realm local database.
  • If there's no data in Realm, it will be retrieved from contacts CNContactStore and saved locally in Realm.
  • The local contacts are synchronized with CNContactStore in background every 15 minutes using BGTaskScheduler.
  • The local contacts are synchronized every time the user opens the app.

Modular Architecture

Stack:

  • SwiftUI
  • Combine
  • RxSwift
  • CombineMoya
  • MVVM
  • Modular architecture

README

Each module has its own README.md file that documents the module.

🛡 License

Click to reveal License
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

A sample iOS project for SwiftUI, MVVM, clean code, modular architecture, Realm, ContentProvider, unit testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published