AathifMahir.Maui.MauiIcons.Cupertino
2.0.0-rc1.1
Prefix Reserved
See the version list below for details.
dotnet add package AathifMahir.Maui.MauiIcons.Cupertino --version 2.0.0-rc1.1
NuGet\Install-Package AathifMahir.Maui.MauiIcons.Cupertino -Version 2.0.0-rc1.1
<PackageReference Include="AathifMahir.Maui.MauiIcons.Cupertino" Version="2.0.0-rc1.1" />
paket add AathifMahir.Maui.MauiIcons.Cupertino --version 2.0.0-rc1.1
#r "nuget: AathifMahir.Maui.MauiIcons.Cupertino, 2.0.0-rc1.1"
// Install AathifMahir.Maui.MauiIcons.Cupertino as a Cake Addin #addin nuget:?package=AathifMahir.Maui.MauiIcons.Cupertino&version=2.0.0-rc1.1&prerelease // Install AathifMahir.Maui.MauiIcons.Cupertino as a Cake Tool #tool nuget:?package=AathifMahir.Maui.MauiIcons.Cupertino&version=2.0.0-rc1.1&prerelease
.Net Maui Icons
The .NET MAUI Icons - Cupertino library serves as a lightweight icon library, addressing icon and font icon management in .NET MAUI by offering controls that utilize the comprehensive open-source version of the Framework 7 iOS Icon Collection, seamlessly integrated into the library. Check out the Repository for Docs
Get Started
In order to use the .Net Maui Icons - Cupertino you need to call the extension method in your MauiProgram.cs
file as follows:
using MauiIcons.Cupertino;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
// Initialise the .Net Maui Icons - Cupertino
builder.UseMauiApp<App>().UseCupertinoMauiIcons();
}
}
Usage
In order to make use of the .Net Maui Icons - Cupertino you can use the below namespace:
Xaml
xmlns:mi="http://www.aathifmahir.com/dotnet/2022/maui/icons"
C#
using MauiIcons.Cupertino;
Breaking Changes from v2
Old
xmlns:cupertino="clr-namespace:MauiIcons.Cupertino;assembly=MauiIcons.Cupertino"
<cupertino:MauiIcon Icon="Airplane"/>
New
xmlns:mi="http://www.aathifmahir.com/dotnet/2022/maui/icons"
<mi:MauiIcon Icon="{mi:Cupertino Airplane}"/>
Built in Control Usage
Xaml
<mi:MauiIcon Icon="{mi:Cupertino Airplane}"/>
C#
new MauiIcon() {Icon = CupertinoIcons.AppBadge, IconColor = Colors.Green};
new MauiIcon().Icon(CupertinoIcons.AntFill).IconColor(Colors.Purple);
All the Properties and Features of Built in Control, Check Here
Xaml Extension Usage
<Image Aspect="Center" Source="{mi:Cupertino Icon=ArchiveboxFill}"/>
<Label Text="{mi:Cupertino Icon=Airplane}"/>
C# Markup Usage
new ImageButton().Icon(CupertinoIcons.AntFill),
new Image().Icon(CupertinoIcons.AntFill),
new Label().Icon(CupertinoIcons.AntFill).IconSize(40.0).IconColor(Colors.Red),
new Entry().Icon(CupertinoIcons.AntFill).IconSize(20.0).IconColor(Colors.Aqua),
Disclaimer: It's important to note that not all controls are compatible with C# markup. We have conducted tests with the following controls in the current release: Label, Image, ImageButton, SearchBar, Editor, and Entry. Additionally, the native MauiIcon control, when combined with C# markup, can prove to be quite versatile and offer extra features for various scenarios.
Applying Icon To Text or Placeholder
Controls that Supports Placeholder, Can Assign the Icon To PlaceHolder or Text, Defaults to Placeholder but can be set to Text by Setting isPlaceHolder Parameter to False
new Entry().Icon(CupertinoIcons.AntFill, isPlaceHolder: false).IconSize(20.0).IconColor(Colors.Aqua);
new SearchBar().Icon(MaterialIcons.ABC, isPlaceHolder: false);
Disclaimer: It's important to note that not all controls are compatible with C# markup. We have conducted tests with the following controls in the current release: Label, Image, ImageButton, SearchBar, Editor, and Entry. Additionally, the native MauiIcon control, when combined with C# markup, can prove to be quite versatile and offer extra features for various scenarios.
Custom OnPlatform and OnIdiom Usage
Xaml
<mi:MauiIcon Icon="{mi:Cupertino Airplane}" OnPlatforms="WinUI, Android, MacCatalyst"/>
<mi:MauiIcon Icon="{mi:Cupertino AntFill}" OnIdioms="Desktop, Phone, Tablet"/>
<mi:MauiIcon Icon="{mi:Cupertino Airplane}" OnPlatforms="Android" OnIdioms="Phone"/>
C#
new MauiIcon().Icon(CupertinoIcons.AntFill).OnPlatforms(new List<string>{"WinUI", "Android"});
new MauiIcon().Icon(CupertinoIcons.Airplane).OnIdioms(new List<string>{"Desktop", "Phone"});
new MauiIcon().Icon(CupertinoIcons.AntFill).OnPlatforms(new List<string>{"WinUI", "Android"}).OnIdioms(new List<string>{"Desktop", "Phone"});
Maui Built in OnPlatform and OnIdiom Usage
<Image>
<Image.Source>
<OnPlatform x:TypeArguments="ImageSource" Default="{mi:Cupertino Icon=Airplane, TypeArgument={x:Type ImageSource}}">
<On Platform="MacCatalyst, WinUI"
Value="{mi:Cupertino Icon=AntFill, IconBackgroundColor=Cyan, TypeArgument={x:Type ImageSource}}"/>
</OnPlatform>
</Image.Source>
</Image>
<Image>
<Image.Source>
<OnIdiom Default="{mi:Cupertino Icon=AntFill, TypeArgument={x:Type ImageSource}}"
Desktop="{mi:Cupertino Icon=Airplane, TypeArgument={x:Type ImageSource}}">
</OnIdiom>
</Image.Source>
</Image>
Disclaimer: Only ImageSource or FontImageSource Supports Maui's Built in OnPlatform or OnIdiom and TypeArgument Should be Assigned to Work Optimally, Therefore It's Recommended to use MauiIcons Custom OnPlatform and OnIdioms
License
MauiIcons.Cupertino</br> The MauiIcons.Cupertino library is distributed under the MIT License.
Cupertino Icons</br> The Cupertino Icons library is distributed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-android33.0 is compatible. net7.0-ios was computed. net7.0-ios16.1 is compatible. net7.0-maccatalyst was computed. net7.0-maccatalyst16.1 is compatible. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows10.0.19041 is compatible. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- AathifMahir.Maui.MauiIcons.Core (>= 2.0.0-rc1.1)
-
net7.0-android33.0
- AathifMahir.Maui.MauiIcons.Core (>= 2.0.0-rc1.1)
-
net7.0-ios16.1
- AathifMahir.Maui.MauiIcons.Core (>= 2.0.0-rc1.1)
-
net7.0-maccatalyst16.1
- AathifMahir.Maui.MauiIcons.Core (>= 2.0.0-rc1.1)
-
net7.0-windows10.0.19041
- AathifMahir.Maui.MauiIcons.Core (>= 2.0.0-rc1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on AathifMahir.Maui.MauiIcons.Cupertino:
Repository | Stars |
---|---|
securefolderfs-community/SecureFolderFS
Powerful, secure, modern way to keep your files protected.
|
Version | Downloads | Last updated | |
---|---|---|---|
4.0.0 | 194 | 10/17/2024 | |
3.0.0 | 665 | 5/11/2024 | |
2.2.5 | 160 | 5/6/2024 | |
2.2.0-pre | 109 | 5/4/2024 | |
2.1.5 | 199 | 4/1/2024 | |
2.1.2 | 159 | 3/17/2024 | |
2.1.1 | 279 | 2/1/2024 | |
2.1.0 | 269 | 12/23/2023 | |
2.0.0 | 218 | 11/17/2023 | |
2.0.0-rc1.1 | 76 | 11/14/2023 | |
1.2.1 | 2,114 | 8/15/2023 | |
1.2.0 | 184 | 7/1/2023 | |
1.1.6 | 161 | 6/22/2023 |
v2.0.0-rc1
• New Modular Core
• Major Core Control Enhancements
• Icon Suffix Support on Core Control
• Major Core Extension Enhanecements and Support for C# Markup Extension
• New C# Markup Extension for Maui Built in Controls
• New OnPlatform and OnIdioms Support
• Improved Docs
v1.2.1
• Added Support for Vanilla Version of Dotnet to Unit Test the Project
v1.2.0
• Added Variant Support Base Control and Extension
• New and Improved Icon Control
v1.1.6
• Cupertino Icon Support