.NET MAUI on iOS

Learn how to build native iOS applications using .NET Multi-platform App UI (MAUI). This section provides comprehensive guides, API references, and best practices for developing with MAUI for the iOS platform.

Getting Started with MAUI for iOS

This guide will walk you through the initial steps of setting up your development environment and creating your first .NET MAUI app that targets iOS.

  1. Prerequisites: Ensure you have the latest .NET SDK and Visual Studio installed with the .NET MAUI workload. For iOS development, you'll also need Xcode installed on a Mac.
  2. Create a New Project: Use the Visual Studio template to create a new .NET MAUI app.
  3. Configure for iOS: Set up your project's deployment target and provisioning profiles within Xcode and Visual Studio.
  4. Run on Simulator/Device: Learn how to deploy and debug your application on an iOS simulator or a physical device.
dotnet new maui -n MyMauiApp
cd MyMauiApp
dotnet build -t:Run -f net8.0-ios
Read the full Getting Started guide →

UI Development for iOS

Explore how to craft beautiful and responsive user interfaces for iOS using XAML and C# with .NET MAUI.

Layouts

Understand MAUI's powerful layout containers like Grid, StackLayout, and AbsoluteLayout to arrange your UI elements.

Learn about Layouts →

Controls

Discover the rich set of built-in controls available for iOS, including Buttons, Labels, Images, and more.

Explore Controls →

Styling and Theming

Apply styles, themes, and templates to create a consistent look and feel across your iOS application.

Master Styling →

Platform-Specific APIs and Features

.NET MAUI allows you to access native iOS APIs directly when needed.

using Microsoft.Maui.ApplicationModel;

// Example: Accessing Battery API
var batteryLevel = Battery.Default.ChargeLevel;
var batteryState = Battery.Default.State;

// ... further platform-specific code
Accessing Native APIs →

Best Practices for iOS Development

Optimize your .NET MAUI applications for performance, usability, and adherence to Apple's Human Interface Guidelines.

View Best Practices →

Troubleshooting and Support

Find solutions to common issues and get support from the .NET MAUI community.