An alternative view rendering API for Fabulous that is easy to use and simple to read, inspired by Elmish on the web.
Install from Nuget
dotnet add package Fabulous.SimpleElements
The library aims to unify both optional arguments and fluent extension methods for View elements into a list of attributes
StackLayout.stackLayout [ StackLayout.Padding 20.0 StackLayout.VerticalLayout LayoutOptions.Center StackLayout.Children [ Label.label [ Label.Text "Congrats, you have won!"; Label.HorizontalTextAlignment TextAlignment.Center Label.MarginLeft 30.0 Label.MarginRight 30.0 Label.FontSize FontSize.Large ] Button.button [ Button.Text "Play Again" Button.OnClick (fun _ -> dispatch StartNewGame) ] ] ]
Running the samples
Each sample has it's own solution, open any of the samples in Visual Studio or Visual Studio for Mac, select your preferred project to start the app, either
<AppName>.iOS and run the project.