Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CollectiveHealth-gists/61004e047ef28c9e1b387b665ea03c2f to your computer and use it in GitHub Desktop.
Save CollectiveHealth-gists/61004e047ef28c9e1b387b665ea03c2f to your computer and use it in GitHub Desktop.
Testing iOS at Collective Health: An Example of the View Model for our search results map view
struct SearchResultsMapViewModel {
init(searchLocation loc: SearchLocationDescription?, details: [GetCareProvider])
func getAnnotations() -> [MKAnnotation]
func getProviderForAnnotation(annotation: GetCareAnnotation) -> CollectiveHealth.GetCareProvider?
static func configForAnnotation(annotation: GetCareAnnotation) -> CollectiveHealth.LocationDetailsTableViewModel
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment