Plugin.Maui.DebugRainbows 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Plugin.Maui.DebugRainbows --version 1.0.1                
NuGet\Install-Package Plugin.Maui.DebugRainbows -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Plugin.Maui.DebugRainbows" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Plugin.Maui.DebugRainbows --version 1.0.1                
#r "nuget: Plugin.Maui.DebugRainbows, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Plugin.Maui.DebugRainbows as a Cake Addin
#addin nuget:?package=Plugin.Maui.DebugRainbows&version=1.0.1

// Install Plugin.Maui.DebugRainbows as a Cake Tool
#tool nuget:?package=Plugin.Maui.DebugRainbows&version=1.0.1                

Debug Rainbows

Plugin.Maui.DebugRainbows

Have you ever had a piece of XAML code that didn't produce the layout you expected? Did you change the background colors on certain elements to get an idea of where they are positioned? Admit it, you have and pretty much all of us have at some point. Either way, this is the package for you! It adds some nice colorful debug modes to your ContentPages or specific visual elements that let you immediately see where all of your elements are located!

Install Plugin

NuGet

Available on NuGet.

Install with the dotnet CLI: dotnet add package Plugin.Maui.DebugRainbows, 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)

API Usage

Registration

You will first need to register DebugRainbows with the MauiAppBuilder by calling UseDebugRainbows():

public static MauiApp CreateMauiApp()
{
    var builder = MauiApp.CreateBuilder();
    builder
        .UseMauiApp<App>()
        .UseDebugRainbows();
        // Coming Soon: Optionally provide an Options object:
        //.UseDebugRainbows(new DebugRainbowOptions());

    return builder.Build();
}

Features

Once you have set up DebugRainbows it will color all of your UI elements (everything inheriting from View) automatically. This way you can verify which elements might be taking up unnecessary space or trace elements that might not be behaving as expected.

🔜 Coming soon: additional grid overlay features currently already present in the old Xamarin.Forms version.

Acknowledgements

This project could not have come to be without these projects and people, thank you! ❤️

Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net8.0-ios17.2 is compatible.  net8.0-maccatalyst17.2 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 8,128 5/21/2024
1.2.0 4,156 3/22/2024
1.1.0 200 3/19/2024
1.0.1 220 3/13/2024
1.0.0 145 3/13/2024