0c9f8ec598 | ||
---|---|---|
.nuget | ||
.paket | ||
Fabulous.CodeGen | ||
Fabulous.StaticView | ||
Fabulous.XamarinForms | ||
docs | ||
src | ||
tests | ||
.gitignore | ||
DEVGUIDE.md | ||
Directory.Build.props | ||
FABULOUS.md | ||
Fabulous.sln | ||
LICENSE.md | ||
Packages.targets | ||
README.md | ||
RELEASE_NOTES.md | ||
SourceLink.props | ||
azure-pipeline-osx-setup.sh | ||
azure-pipelines-full.yml | ||
azure-pipelines-pr.yml | ||
build.cmd | ||
build.fsx | ||
build.proj | ||
build.sh | ||
netfx.props | ||
paket.dependencies | ||
paket.lock | ||
paket.references |
README.md
Fabulous
F# Functional App Development, using declarative dynamic UI
Never write a ViewModel class again! Conquer the world with clean dynamic UIs!
This repository contains 3 differents libraries:
Package | NuGet |
---|---|
Fabulous | |
Fabulous.XamarinForms | |
Fabulous.StaticView.XamarinForms |
Fabulous
This library aims to provide all the core abstractions and tools for writing your own app framework based on the "model view update" programming model and dynamic UI. It is a variation of elmish, an Elm architecture implemented in F#.
Fabulous for Xamarin.Forms
This library allows you to use the ultra-simple Model-View-Update architecture to build applications for iOS, Android, Mac, WPF and more using Xamarin.Forms. It is built on Fabulous.
With Fabulous for Xamarin.Forms, you will be able to write complete applications fully in F#, like this:
type Model = { Text: string }
type Msg = ButtonClicked
let init () = { Text = "Hello Fabulous!" }
let update msg model =
match msg with
| ButtonClicked -> { model with Text = "Thanks for using Fabulous!" }
let view model dispatch =
View.ContentPage(
View.StackLayout(
children=[
View.Image(source = "fabulous.png")
View.Label(text = model.Text, fontSize = 22.)
View.Button(text = "Click me", command = (fun () -> dispatch ButtonClicked))
]
)
)
Learn more about Fabulous for Xamarin.Forms
Fabulous StaticView
This library allows you to write Xamarin.Forms apps using XAML and the Model-View-Update architecture.
It is not actively maintained.
If you wish to see more support for Fabulous.StaticView, please consider contributing.
Learn more about Fabulous StaticView
Contributing
Please contribute to this library through issue reports, pull requests, code reviews and discussion.
Credits
This library is inspired by Elmish.WPF, Elmish.Forms and elmish.