-
Notifications
You must be signed in to change notification settings - Fork 4
Architecture
The WSDOT iOS app using a Model–View–Presenter (MVP) architecture. The majority of screens in the app are created using a Store (Model), Storyboard (View) and ViewController (Presenter).
The Store files (example) handle downloading data from the server and saving it to the local Realm database. Alamofire and SwiftyJSON are used for downloading the various data files. The main types of data all have their own cache time, or time until the app will automatically fetch new data, defined in CachesStore.swift.
The Storyboards define the flow of screens in the app. Most are broken up into separate files based on the sections of the app. More information about Storyboards can be found in the Apple Documentation.
The View Controllers (example) handle putting it all together and presenting a screen. Most View Controllers have references to views found in the Storyboards. These references are labeled with @IBOutlet
.