NkkinSoft.Shimmer.Maui 1.0.3

dotnet add package NkkinSoft.Shimmer.Maui --version 1.0.3
                    
NuGet\Install-Package NkkinSoft.Shimmer.Maui -Version 1.0.3
                    
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="NkkinSoft.Shimmer.Maui" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NkkinSoft.Shimmer.Maui" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="NkkinSoft.Shimmer.Maui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NkkinSoft.Shimmer.Maui --version 1.0.3
                    
#r "nuget: NkkinSoft.Shimmer.Maui, 1.0.3"
                    
#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.
#:package NkkinSoft.Shimmer.Maui@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NkkinSoft.Shimmer.Maui&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=NkkinSoft.Shimmer.Maui&version=1.0.3
                    
Install as a Cake Tool

NkkinSoft.Shimmer.Maui

A native .NET 10 and .NET 11 MAUI skeleton placeholder for Android, iOS, Mac Catalyst, and Windows. It draws a rounded, theme-aware loading surface with GraphicsView, then reveals an optional view when loading completes. It does not depend on the Android-only Shimmer.NET library, and does not implement that library's content masking, auto-skeleton traversal, RecyclerView, or built-in error state.

Install and use

Reference NkkinSoft.Shimmer.Maui/NkkinSoft.Shimmer.Maui.csproj from a .NET 10 or .NET 11 MAUI application, or install the NkkinSoft.Shimmer.Maui package once published. No MauiProgram handler registration is required.

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:shimmer="clr-namespace:NkkinSoft.Shimmer.Maui;assembly=NkkinSoft.Shimmer.Maui"
             x:Class="Sample.ProfilePage">
    <VerticalStackLayout Padding="24" Spacing="12">
        <shimmer:ShimmerView IsLoading="{Binding IsProfileLoading}"
                             LoadingDescription="Loading profile"
                             HeightRequest="72" CornerRadius="12"
                             Shape="Card"
                             AnimationType="Wave">
            <Label Text="{Binding ProfileName}" FontSize="24" />
        </shimmer:ShimmerView>
        <shimmer:ShimmerView IsLoading="{Binding IsProfileLoading}"
                             HeightRequest="18" WidthRequest="160"
                             HorizontalOptions="Start"
                             Shape="Line" />
        <shimmer:ShimmerView IsLoading="{Binding IsAvatarLoading}"
                             HeightRequest="48" WidthRequest="48"
                             Shape="Circle"
                             AnimationType="Pulse" />
    </VerticalStackLayout>
</ContentPage>

The view inside ShimmerView is its LoadedContent. While loading, the view is hidden and the visual placeholder has a spoken description. After loading, the placeholder is hidden and the real view becomes visible and accessible. If no content is supplied, set IsLoading=false to hide the placeholder (the empty view keeps its layout space if you request a size).

The minimum placeholder height is 24 device-independent units; a supplied content view can grow beyond this. Explicit HeightRequest, WidthRequest, and CornerRadius let you build lines, cards, or circles. For a circle, use equal width and height and a radius of at least half that dimension. Combine multiple placeholders in a MAUI layout; equally timed views share the same monotonic animation phase. The overlay does not intercept touches.

Shapes

Shape Description
Rectangle (default) Rounded rectangle placeholder
Circle Circle/oval for avatars or badges
Line Thin line for text placeholders
Card Rounded rectangle with subtle border for card-like placeholders
Avatar Circle with badge area (bottom-right)

Animation Types

Type Description
Linear (default) Smooth sweep from one edge to another
Wave Sinusoidal wave pattern that oscillates
Pulse Radial fade in/out from center
MultiColor HSV color-shifting gradient sweep
Custom Follows a user-supplied PathF

Options

Property Default Description
IsLoading true Show placeholder instead of LoadedContent.
LoadedContent null View revealed when loading finishes.
Duration 1100 Sweep duration in milliseconds, 1–60000.
RepeatDelay 0 Pause after each sweep, 0–60000 milliseconds.
Direction StartToEnd Horizontal, vertical, or flow-relative sweep.
CornerRadius 8 Rounded corners in device-independent units.
BaseColor / HighlightColor Theme tokens Per-view color overrides.
ReduceMotion null null follows the platform setting; true renders a static placeholder; false forces motion.
LoadingDescription Loading content Screen-reader description during loading.
Shape Rectangle Placeholder shape (Rectangle, Circle, Line, Card, Avatar).
AnimationType Linear Animation style (Linear, Wave, Pulse, MultiColor, Custom).
CustomPath null Custom PathF for Custom animation type.

Direction Values

Value Behavior
LeftToRight Sweep from left edge to right edge
RightToLeft Sweep from right edge to left edge
TopToBottom Sweep from top edge to bottom edge
BottomToTop Sweep from bottom edge to top edge
StartToEnd Follows view's FlowDirection (LTR → left-to-right, RTL → right-to-left)
EndToStart Opposite of StartToEnd

Colors default to light/dark semantic tokens. To override them across an app, set NkkinSoft.Shimmer.BaseColor and NkkinSoft.Shimmer.HighlightColor as Color entries in Application.Current.Resources; alternatively bind the per-view colors with MAUI AppThemeBinding. The view responds to Application.RequestedThemeChanged. If resources or system animation settings change while a view is already displayed, call RefreshAppearance() to re-evaluate them. Animation runs only while a view is loaded, visible, and loading; it stops on unload, completion, or reduced motion.

Platform Reduce-Motion Support

The view automatically detects the platform's reduce-motion/animation setting:

  • Android: Settings.Global.AnimatorDurationScale == 0
  • iOS / Mac Catalyst: UIAccessibility.IsReduceMotionEnabled
  • Windows: UISettings.AnimationsEnabled == false

Set ReduceMotion="true" to force static placeholder, ReduceMotion="false" to force animation, or leave as null (default) to follow the platform setting.

Build and checks

Requires the .NET 11 SDK (which compiles both the .NET 10 and .NET 11 targets using C# 15) and the corresponding MAUI workloads. The project references MAUI Controls 10.0.130 on .NET 10 and 11.0.10 on .NET 11; package restore and app builds require the relevant platform workloads. Building iOS and Mac Catalyst apps requires an appropriate Mac host. From this directory, build-pack.cmd (Windows) runs the checks on both runtimes and packs artifacts\NkkinSoft.Shimmer.Maui.<version>.nupkg and .snupkg. Pack on Windows so the Windows targets are included. Manually:

dotnet run --project NkkinSoft.Shimmer.Maui.Tests/NkkinSoft.Shimmer.Maui.Tests.csproj -c Release -f net10.0
dotnet run --project NkkinSoft.Shimmer.Maui.Tests/NkkinSoft.Shimmer.Maui.Tests.csproj -c Release -f net11.0
dotnet pack NkkinSoft.Shimmer.Maui/NkkinSoft.Shimmer.Maui.csproj -c Release -o artifacts
dotnet nuget push artifacts/NkkinSoft.Shimmer.Maui.<version>.nupkg --api-key <key> --source https://api.nuget.org/v3/index.json

The package has eight target assets: .NET 10 and .NET 11 for Android, iOS, Mac Catalyst, and (when packed on Windows) Windows. C# 15 collection expression arguments reserve the shared clock's placeholder batch up front. The console checks cover sweep timing and repeat delay on both runtimes. Rendering, accessibility announcements, app lifecycle, and each platform's native animation preference need an app-level visual/device test; a compile or timeline check does not verify those behaviors.

Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst26.0 is compatible.  net10.0-windows10.0.19041 is compatible.  net11.0-android37.0 is compatible.  net11.0-ios27.2 is compatible.  net11.0-maccatalyst27.2 is compatible.  net11.0-windows10.0.19041 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.0.3 97 11/23/2026
1.0.2 94 11/23/2026
1.0.1 108 11/16/2026
1.0.0 100 11/13/2026

1.0.3: Shape and animation type support (Rectangle, Circle, Line, Card, Avatar; Linear, Wave, Pulse, MultiColor, Custom); Grid-based layout for API compatibility; full platform reduce-motion detection.