Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidortinau/Plugin.Maui.DebugOverlay


https://github.com/davidortinau/Plugin.Maui.DebugOverlay

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

![](nuget.png)
# Plugin.Maui.DebugOverlay

`Plugin.Maui.DebugOverlay` provides a simple ribbon to indicate the app is running in Debug mode.

![screenshot of a mac app with the ribbon](images/mac_screenshot.png)

## Install Plugin

[![NuGet](https://img.shields.io/nuget/v/Plugin.Maui.DebugOverlay.svg?label=NuGet)](https://www.nuget.org/packages/Plugin.Maui.DebugOverlay/)

Available on [NuGet](http://www.nuget.org/packages/Plugin.Maui.DebugOverlay).

Install with the dotnet CLI: `dotnet add package Plugin.Maui.DebugOverlay`, or through the NuGet Package Manager in Visual Studio.

### Supported Platforms

| Platform | Minimum Version Supported |
|----------|---------------------------|
| iOS | 11+ |
| macOS | 10.15+ |
| Android | 5.0 (API 21) |
| Windows | 11 and 10 version 1809+ |

## Usage

Enable the plugin in your `MauiProgram.cs` and provide your preferred color.

```csharp
.UseDebugRibbon(Colors.Orange)
```

For exmaple:

```csharp
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp()
.UseDebugRibbon(Colors.Orange)
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});

builder.Services.AddTransient();

return builder.Build();
}
```

It will only display in Debug.