using LocationTrackerApp.ViewModels;

namespace LocationTrackerApp.Views;

/// <summary>
/// Main view for the location tracking application
/// </summary>
public partial class MainView : ContentPage
{
    /// <summary>
    /// Initializes a new instance of MainView
    /// </summary>
    public MainView()
    {
        InitializeComponent();
    }

    /// <summary>
    /// Initializes a new instance of MainView with view model
    /// </summary>
    /// <param name="viewModel">The view model for this view</param>
    public MainView(MainViewModel viewModel) : this()
    {
        BindingContext = viewModel;
    }
}
