TimLariviere / Fabulous-new

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

Add reference modifier to all controls #89

Closed TimLariviere closed 2 years ago

TimLariviere commented 2 years ago

I added a reference modifier to all controls with at least 1 builder. Only IndicatorView doesn't have that modifier because the reference is part of the mandatory parameter of its builder.

Also couldn't use inheritance with this: WidgetBuilder<'msg, #IElement> because I need to enforce the appropriate type of ViewRef. E.g. IButton => ViewRef<Xamarin.Forms.Button>; ILabel => ViewRef<Xamarin.Forms.Label>;