The easy way to create a map region around sets of coordinates in Swift.
When you have a map view in an iOS application, you may wish to add annotations or poly lines, etc. After adding them, you'd like to have the map zoom to a region that contains all the coordinates and maybe a little bit of padding on the sides. This simple framework makes it easy.
Add to your pod file:
pod 'MapRegionMaker'
Simply drop the file into your project.
Import:
Import MapRegionMaker
Create an instance of MapRegionMaker
let mapRegionMaker = MapRegionMaker()
Add coordinates, either as singles or arrays.
CocoaPod support coming soon.Done!- Better usage example coming soon.
This framework was created by David Lari. It is dreadfully simple, but I wanted to get some practice creating frameworks, pushing them to github, and setting up pods. Pull requests and suggestions are welcome. If you have questions, please create an issue.