This excercise show a list of animals, and it can be filtered, or sorted. uses a pattern called cleanSwift http://clean-swift.com/ and a repository pattern. this architecture is more about Protocol Oriented Programing
Used libraries:
-
cache data
-
object mapper
-
infinite scroll
-
alamofire
-
ObjectMapper
-
SkyFloatingLabelTextField
Pd: just open animals.xcworkspace
-
- To accomplish this i used the Repository Pattern, creating a testing repository to get filtered, sorted and paginated dummy data, leaving the responsability to get data no matter how. It can be switched changin a variable to false in the repositoryLocator.
-
- The simplest approach to this is using a paginated list and leave responsibility to the "web service"