{"id":20026706,"url":"https://github.com/hlfcoding/hlfmapviewcontroller","last_synced_at":"2025-07-25T12:36:39.189Z","repository":{"id":35831751,"uuid":"40114749","full_name":"hlfcoding/HLFMapViewController","owner":"hlfcoding","description":":round_pushpin: Map modal for searching and selecting a location","archived":false,"fork":false,"pushed_at":"2023-12-27T11:33:47.000Z","size":149,"stargazers_count":13,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-27T09:17:54.669Z","etag":null,"topics":["ios","location-picker","mapkit","searchable","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hlfcoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-08-03T08:51:08.000Z","updated_at":"2023-12-27T11:33:51.000Z","dependencies_parsed_at":"2025-05-05T02:34:18.579Z","dependency_job_id":"19d2fb50-f83d-4dbf-b970-04cb77ca28e2","html_url":"https://github.com/hlfcoding/HLFMapViewController","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/hlfcoding/HLFMapViewController","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfcoding%2FHLFMapViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfcoding%2FHLFMapViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfcoding%2FHLFMapViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfcoding%2FHLFMapViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hlfcoding","download_url":"https://codeload.github.com/hlfcoding/HLFMapViewController/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfcoding%2FHLFMapViewController/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267007646,"owners_count":24020263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","location-picker","mapkit","searchable","swift"],"created_at":"2024-11-13T09:07:36.563Z","updated_at":"2025-07-25T12:36:39.166Z","avatar_url":"https://github.com/hlfcoding.png","language":"Swift","readme":"# HLFMapViewController\n\n[![Version](https://img.shields.io/cocoapods/v/HLFMapViewController.svg?style=flat)](http://cocoapods.org/pods/HLFMapViewController)\n[![License](https://img.shields.io/cocoapods/l/HLFMapViewController.svg?style=flat)](http://cocoapods.org/pods/HLFMapViewController)\n[![Platform](https://img.shields.io/cocoapods/p/HLFMapViewController.svg?style=flat)](http://cocoapods.org/pods/HLFMapViewController)\n[![Code Climate](https://codeclimate.com/github/hlfcoding/HLFMapViewController/badges/gpa.svg)](https://codeclimate.com/github/hlfcoding/HLFMapViewController)\n\n\u003e A generic implementation of a common feature: searching and selecting a nearby location from an `MKMapView`.\n\n![screenshot-1](https://pengxwang.s3.amazonaws.com/files/hlf-map-view-controller-1-2.png) \u0026emsp;\u0026emsp;![screenshot-2](https://pengxwang.s3.amazonaws.com/files/hlf-map-view-controller-2-2.png)\n\n## Usage\n\nThis version uses Swift 3. The final Swift 2 version is 0.2.5.\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\nIn addition to turning on the 'Maps' capability, you'll need to add `location-services` to `UIRequiredDeviceCapabilities`and fill in `NSLocationAlwaysUsageDescription` in your Info.plist.\n\nOther than that just set up the view controller and implement the delegate method:\n\n```swift\n// ...\nlet mapViewController = MapViewController(nibName: \"MapViewController\", bundle: MapViewController.bundle)\nmapViewController.delegate = self\nmapViewController.selectedMapItem = self.selectedMapItem // Optional.\n// ...\n\nfunc mapViewController(_ mapViewController: MapViewController, didSelectMapItem mapItem: MKMapItem) {\n    self.selectedMapItem = mapItem // Save, submit, etc.\n    mapViewController.dismissViewController(animated: true, completion: nil)\n}\n```\n\nSee [example app](//github.com/hlfcoding/HLFMapViewController/blob/master/Example/HLFMapViewController/ViewController.swift) for more details.\n\n## Installation\n\nHLFMapViewController is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"HLFMapViewController\"\n```\n\n## License\n\nHLFMapViewController is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlfcoding%2Fhlfmapviewcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhlfcoding%2Fhlfmapviewcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlfcoding%2Fhlfmapviewcontroller/lists"}