Uno Cupertino Toolkit Library
The Uno Cupertino Toolkit library is available as NuGet packages that can be added to any new or existing Uno solution.
Installation
Note
Make sure to setup your environment first by following our instructions.
Creating a new project with the Uno Material Toolkit
Install the
dotnet new
CLI templates with:dotnet new install Uno.Templates
Create a new application with:
dotnet new unoapp -o CupertinoToolkitApp -toolkit -theme cupertino
Installing Uno Cupertino Toolkit in an existing project
Depending on the type of project template that the Uno Platform application was created with, follow the instructions below to install the Uno Cupertino Toolkit.
- Single Project Template
- Multi-Head Project Template (Legacy)
- Shared Project (.shproj) Template (Legacy)
Edit your project file (
PROJECT_NAME.csproj
) and addToolkit
andCupertino
to the list ofUnoFeatures
:<UnoFeatures>Toolkit;Cupertino</UnoFeatures>
Initialize the resources in the
App.xaml
:<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <!-- Code omitted of brevity --> <!-- Load Cupertino resources --> <CupertinoColors xmlns="using:Uno.Cupertino" /> <CupertinoFonts xmlns="using:Uno.Cupertino" /> <CupertinoResources xmlns="using:Uno.Cupertino" /> <!-- Load Cupertino Toolkit resources --> <ToolkitResources xmlns="using:Uno.Toolkit.UI" /> <CupertinoToolkitResources xmlns="using:Uno.Toolkit.UI.Cupertino" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>
Customization
For instructions on changing the default color palette or the font family, please refer to the Uno Cupertino Customization guide.