LocationsVC

class LocationsVC : UIViewController
extension LocationsVC: Mapper
extension LocationsVC: LocationTracker
extension LocationsVC: Exposing
extension LocationsVC: UISearchBarDelegate
extension LocationsVC: MKMapViewDelegate
extension LocationsVC: AddPhotoDelegate
extension LocationsVC: InterfaceBuildable

Root controller for the map displaying tab

Mapper

LocationTracker

Exposing

UISearchBarDelegate

MKMapViewDelegate

  • Update user location

    Declaration

    Swift

    func mapView(_ mapView: MKMapView,
                 didUpdate userLocation: MKUserLocation)

    Parameters

    mapView

    Map view

    userLocation

    Location

  • Produce annotation view

    Declaration

    Swift

    func mapView(_ mapView: MKMapView,
                 viewFor annotation: MKAnnotation) -> MKAnnotationView?

    Parameters

    mapView

    Map view

    annotation

    Annotation

    Return Value

    Mappable[s]AnnotationView

  • Handle annoation selection

    Declaration

    Swift

    func mapView(_ mapView: MKMapView,
                 didSelect view: MKAnnotationView)

    Parameters

    mapView

    Map view

    view

    Annotation view

  • Provide overlay renderer

    Declaration

    Swift

    func mapView(_ mapView: MKMapView,
                 rendererFor overlay: MKOverlay) -> MKOverlayRenderer

    Parameters

    mapView

    Map view

    overlay

    Overlay

    Return Value

    Renderer

MKUserTrackingButton

InterfaceBuildable