Creating and implementing the CustomMapRenderer (iOS)
In this section, we will begin by creating the CustomMapRenderer
class for the iOS section of our TrackMyWalks
solution, which will essentially contain various instance methods that will be used by our LocationService
class. The advantage of creating a CustomMapRenderer
class is that it's much easier to add additional class instance methods that will be used by those ViewModels that utilize this interface.
Let's start by creating the CustomMapRenderer
class for our TrackMyWalks
app by performing the following steps:
- Ensure that the
TrackMyWalks
solution is open within the Visual Studio for Mac IDE. - Next, right-click on the
TrackMyWalks.iOS
project and chooseAdd|New Folder
from the pop-up menu. Then, enterCustomRenderers
for the name of the new folder to be created. - Afterwards, right-click on the
CustomRenderers
folder and chooseAdd|New File...
from the pop-up menu, as shown in the following screenshot:

Creating a New File within the CustomRenderers...