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() | |
} |
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() | |
} |