Skip to content

Instantly share code, notes, and snippets.

@hitendradeveloper
Last active May 24, 2018 19:34
Show Gist options
  • Save hitendradeveloper/59adb252337221b09fcba51a407c3d03 to your computer and use it in GitHub Desktop.
Save hitendradeveloper/59adb252337221b09fcba51a407c3d03 to your computer and use it in GitHub Desktop.
Protocol Example - 3 : Multiple protocol extensions of a class : Medium blog :
class PlacesMapViewController: UIViewController {
//PlacesMapViewController implementation
}
extension PlacesMapViewController: MKMapViewDelegate {
//implementation of methods releated to mapView
}
extension PlacesMapViewController: UISearchBarDelegate {
//implementation of methods releated to searchbar
}
@hitendradeveloper
Copy link
Author

This is just example of multiple extensions of a class by implementing multiple protocols - written for the medium blog - Protocol - The power of Swift

https://medium.com/p/950c85bb69b1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment