API Used: https://api.jsonbin.io/b/6093c95293e0ce40806d8a1d
Video Demo: https://youtu.be/XsXdA4lI__s
Data Fetched from API:
- Source Location, Destination Location
- Departure & Arrival Time
- User's Rating
- Fare Price & Currency type
- Bus Type: AC, Non-AC, Seater, Sleeper
- Bus Logo Url
Things to know:
- Implemented dynamic TableView for displaying data fetched from API
- Since fetched data is very less(i.e 5), pagination is not implemented in TableView
- Once data is fetched it will be saved in database with the help of CoreData Framework for Offline support
- User can multi-select the bus type(i.e AC,NonAc,Seater & Sleeper)
- User can also sort the fetched data by selecting: Sort by: a) User's Rating b) Early Departure c) Late Departure d) Fare price
- Used xib's for custom layouts, implemented AutoLayouts, used StackView for properly displaying the data
- Added alert for : no networkConnectivity, failed API, empty data
- Design Pattern: MVC(Model View Controller)
- No third-party framework is integrated.