DynamicApp is an iOS application built using SwiftUI, following the MVVM architecture. It uses Realm-Swift for local storage, Alamofire for networking, and RxSwift/RxCocoa for reactive programming.
- Users enter their email and password.
- Form validation:
- Email must be a valid email address.
- Password length: 8-15 characters.
- Submit button is enabled only when the input is valid.
- On login, users are redirected to Home (local caching is used).
- Login state is cached using Realm, allowing auto-login next time.
- Logout option in the Home screen.
- Fetches posts from
https://jsonplaceholder.typicode.com/posts. - Displays cached posts when offline.
- Users can toggle favorite by tapping the star icon.
- Displays favorite posts.
- Users can remove favorites via swipe-to-delete.
- SwiftUI - UI Development
- MVVM - Architecture
- Realm-Swift - Local Database
- Alamofire - Networking
- RxSwift / RxCocoa - Reactive Programming
git clone https://github.com/Umar25iOS/DynamicApp.git
cd DynamicAppopen DynamicApp.xcodeprojSince this project uses Swift Package Manager (SPM):
- Open the project in Xcode.
- Go to File > Packages > Reset Package Caches.
- Then, go to File > Packages > Resolve Package Versions.
- Select an iOS Simulator.
- Press Cmd + R to build and run the project.


