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

  1. Install the dotnet new CLI templates with:

    dotnet new install Uno.Templates
    
  2. 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.

  1. Edit your project file (PROJECT_NAME.csproj) and add Toolkit and Cupertino to the list of UnoFeatures:

    <UnoFeatures>Toolkit;Cupertino</UnoFeatures>
    
  2. 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.