Apple TV (tvOS)
Platform.Maui.TvOS runs a MAUI app on Apple TV. Every control is a native UIKit view, and the Siri Remote moves the
tvOS focus engine between them.
Requirements
Section titled “Requirements”A Mac with:
- the .NET 11 SDK
- Xcode, for the tvOS SDK and the Apple TV simulator (
sudo xcode-select -s /Applications/Xcode.app) - the tvOS workload:
dotnet workload install tvos
The MAUI workload isn’t needed.
1. Project file
Section titled “1. Project file”<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net11.0-tvos</TargetFramework> <OutputType>Exe</OutputType> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <SupportedOSPlatformVersion>16.0</SupportedOSPlatformVersion>
<ApplicationTitle>My TV App</ApplicationTitle> <ApplicationId>com.example.mytvapp</ApplicationId> <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> <ApplicationVersion>1</ApplicationVersion> </PropertyGroup>
<ItemGroup> <PackageReference Include="Platform.Maui.TvOS" Version="*-*" /> <PackageReference Include="Platform.Maui.Essentials.TvOS" Version="*-*" /> </ItemGroup></Project>Don’t set UseMaui: the packages bring in the MAUI libraries. The SDK generates Info.plist from these properties,
so you don’t need to write one. Using XAML? Also reference Microsoft.Maui.Controls, which compiles *.xaml files.
2. Entry point and application delegate
Section titled “2. Entry point and application delegate”using UIKit;
namespace MyTvApp;
public static class Program{ static void Main(string[] args) => UIApplication.Main(args, null, typeof(MyTvOSApp));}using Foundation;using Microsoft.Maui.Hosting;using Microsoft.Maui.Platform.TvOS.Hosting;
namespace MyTvApp;
[Register(nameof(MyTvOSApp))]public class MyTvOSApp : TvOSMauiApplication{ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();}TvOSMauiApplication builds the MAUI app at launch and hosts its window in a UIScene (required by the tvOS 27 SDK).
It sets the scene up in code, so Info.plist needs no scene manifest.
3. Configure MAUI
Section titled “3. Configure MAUI”using Microsoft.Maui.Hosting;using Microsoft.Maui.Platform.TvOS.Hosting;
namespace MyTvApp;
public static class MauiProgram{ public static MauiApp CreateMauiApp() { // Optional: AppInfo, DeviceInfo, Preferences, Connectivity, ... Microsoft.Maui.Essentials.TvOS.EssentialsExtensions.UseTvOSEssentials();
var builder = MauiApp.CreateBuilder(); builder.UseTvOSMauiApp<App>(); // instead of UseMauiApp<App>() return builder.Build(); }}4. Write the app as usual
Section titled “4. Write the app as usual”using Microsoft.Maui;using Microsoft.Maui.Controls;
namespace MyTvApp;
public class App : Application{ protected override Window CreateWindow(IActivationState? activationState) { var count = 0; var button = new Button { Text = "Press Select" }; button.Clicked += (_, _) => button.Text = $"Pressed {++count} time(s)";
return new Window(new ContentPage { Content = new VerticalStackLayout { Padding = 80, Spacing = 40, Children = { new Label { Text = "Hello from .NET MAUI on Apple TV!", FontSize = 48 }, button, }, }, }); }}Design for the remote: whatever has focus is what Select activates, so give people focusable controls (buttons, or
views with a TapGestureRecognizer) and room for the focus effect.
Run it
Section titled “Run it”dotnet run --list-devices # Apple TV simulators and paired devicesdotnet run --device <identifier> # builds, installs and launchesWith a single simulator available, dotnet run alone is enough. A physical Apple TV must be paired with Xcode and the
app signed with a provisioning profile, as for any Apple app.
What’s supported
Section titled “What’s supported”ContentPage, NavigationPage, TabbedPage and modal pages; a virtualized CollectionView (focusable items,
selection, list/grid/horizontal layouts) and CarouselView; and Label, Button, Entry, Picker, Slider, Switch,
SearchBar, ActivityIndicator, ProgressBar, Image and a display-only map.
There are no separate maps or SkiaSharp packages for tvOS. Maps come from a MapView control built into
Platform.Maui.TvOS (namespace Microsoft.Maui.Platform.TvOS.Controls). It is a display-only MKMapView with pins,
circles, polylines and polygons, not MAUI’s Microsoft.Maui.Controls.Maps Map. SkiaSharp’s SKCanvasView isn’t
supported on tvOS yet.
Essentials covers AppInfo, DeviceInfo, Connectivity, DeviceDisplay, FileSystem, Preferences (NSUserDefaults), SecureStorage, TextToSpeech and Clipboard.
The SampleTv app is a streaming-style
catalog (tabs, navigation, CollectionView shelves) built this way. See the
repository readme for the full handler table.

