|
2 | 2 |
|
3 | 3 | The `TaskLoaderView` is a UI component that handles all your UI loading state (Loading, Error, Result, Notification), and removes all the pain of async loading from your view models (try catch / async void / IsBusy / HasErrors / base view models / ...) thanks to its brother the `TaskLoaderNotifier`. |
4 | 4 |
|
5 | | -| MAUI Supported platforms | XF Supported platforms | |
6 | | -|----------------------------|----------------------------| |
7 | | -| <img src="Docs/maui_logo.png" height="100" /> | <img src="Docs/tlv_icon_tos.png" height="100" />| |
8 | | -| [](https://www.nuget.org/packages/Sharpnado.CollectionView) | [](https://www.nuget.org/packages/Sharpnado.CollectionView) | |
9 | | -| :heavy_check_mark: Android | :heavy_check_mark: Android | |
10 | | -| :heavy_check_mark: iOS | :heavy_check_mark: iOS | |
11 | | -| :heavy_check_mark: Windows | :heavy_check_mark: Windows | |
12 | | -| :heavy_check_mark: macOS | :heavy_check_mark: macOS | |
| 5 | +| MAUI Supported platforms | |
| 6 | +|----------------------------| |
| 7 | +| <img src="Docs/maui_logo.png" height="100" /> | |
| 8 | +| [](https://www.nuget.org/packages/Sharpnado.CollectionView) | |
| 9 | +| :heavy_check_mark: Android | |
| 10 | +| :heavy_check_mark: iOS | |
| 11 | +| :heavy_check_mark: Windows | |
| 12 | +| :heavy_check_mark: macOS | |
13 | 13 |
|
14 | 14 |
|
15 | 15 | **Featuring:** |
@@ -45,40 +45,18 @@ public static class MauiProgram |
45 | 45 | var builder = MauiApp.CreateBuilder(); |
46 | 46 | builder |
47 | 47 | .UseMauiApp<App>() |
| 48 | + .ConfigureTaskLoader(true) // logger enabled |
48 | 49 | .ConfigureFonts(fonts => |
49 | 50 | { |
50 | 51 | fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); |
51 | 52 | fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); |
52 | 53 | }); |
53 | 54 |
|
54 | | - Initializer.Initialize(true); // logger enabled |
55 | | -
|
56 | 55 | return builder.Build(); |
57 | 56 | } |
58 | 57 | } |
59 | 58 | ``` |
60 | 59 |
|
61 | | -### Xamarin.Forms |
62 | | - |
63 | | -Add the [Sharpnado.TaskLoaderView](https://www.nuget.org/packages/Sharpnado.Maui.TaskLoaderView) nuget package. |
64 | | - |
65 | | -And call the initializer in your `MauiProgram.cs` file: |
66 | | - |
67 | | -```csharp |
68 | | -public partial class App : Application |
69 | | -{ |
70 | | - public App() |
71 | | - { |
72 | | - InitializeComponent(); |
73 | | - |
74 | | - // TaskMonitorConfiguration.ConsiderCanceledAsFaulted = true; |
75 | | -
|
76 | | - Initializer.Initialize(true); // logger enabled |
77 | | - MainPage = new NavigationPage(new MainPage()); |
78 | | - } |
79 | | -} |
80 | | -``` |
81 | | - |
82 | 60 | ## 2.5.0 MAUI support \o/ and TemplatedTaskLoader |
83 | 61 |
|
84 | 62 | Version 2.5.0 now supports .Net MAUI. |
|
0 commit comments