Closed TimLariviere closed 2 years ago
I would like to try and implement this
After looking at the changes needed for code generation to be adapted to v2. Im not sure if will be worth as it adds a lot complexity due new way of creating and updating widgets @TimLariviere @twop
IMHO I think at this stage we will get more benefit from mapping the bindable properties Xamarin.Forms.Core API manually which seems a big task but make sure we cover all the special cases .
Closing this one in favor of #53
In v1, we created
Fabulous.CodeGen
to automate the creation of wrappers around Xamarin.Forms controls. It works by taking a mapping file (Xamarin.Forms.Core.json) which has the path to dlls and how we should map the types inside those dlls. It outputs 2 F# files with the attribute keys and wrappers for all mapped controls.The idea is to reuse
Fabulous.CodeGen
and adapt it so it can generate both Xamarin.Forms.Core.Attributes.fs and Xamarin.Forms.Core.fsDoing this will avoid us to implement everything by hand and make a lot more controls available in v2.