TimLariviere / Fabulous-new

Fabulous v2 - Work in progress
https://timothelariviere.com/Fabulous-new/
Other
41 stars 3 forks source link

[Tooling] Adapt Fabulous.CodeGen to automate creation of widget builders #12

Closed TimLariviere closed 2 years ago

TimLariviere commented 2 years ago

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.fs

Doing this will avoid us to implement everything by hand and make a lot more controls available in v2.

edgarfgp commented 2 years ago

I would like to try and implement this

edgarfgp commented 2 years ago

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 .

TimLariviere commented 2 years ago

Closing this one in favor of #53