Created
September 19, 2017 13:37
-
-
Save haitham-reda/ec5577b0e4069758a585197432c995a6 to your computer and use it in GitHub Desktop.
homescreen_adapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func listAdapter(_: ListAdapter, sectionControllerFor object: Any) -> ListSectionController { | |
if object is PropertyModel { | |
return PropertyGallerySectionController() | |
} else if object is LoadMoreModel { | |
return LoadMoreSectionController() | |
} else if object is SectionErrorModel { | |
return ErrorSectionController() | |
} else { | |
return ListSectionController() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment