Last active
May 24, 2018 19:34
-
-
Save hitendradeveloper/59adb252337221b09fcba51a407c3d03 to your computer and use it in GitHub Desktop.
Protocol Example - 3 : Multiple protocol extensions of a class : Medium blog :
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
class PlacesMapViewController: UIViewController { | |
//PlacesMapViewController implementation | |
} | |
extension PlacesMapViewController: MKMapViewDelegate { | |
//implementation of methods releated to mapView | |
} | |
extension PlacesMapViewController: UISearchBarDelegate { | |
//implementation of methods releated to searchbar | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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