I'd like to add AnyRenderableConvirtable into Bento.
Why?
In our main project, we need to have an array of AnyRenderable to be able to call .stack(...) method. Because of that, every element of the array has to have .asAnyRenderable() called at the end of its declaration. I'm just too lazy to do so every time.
With AnyRenderableConvirtable the Stack component can be responsible to call asAnyRenderable() on it's children :)
extension Array where Element == Optional<AnyRenderableConvirtable> { ... }
I'd like to add
AnyRenderableConvirtable
into Bento.Why?
In our main project, we need to have an array of
AnyRenderable
to be able to call.stack(...)
method. Because of that, every element of the array has to have.asAnyRenderable()
called at the end of its declaration. I'm just too lazy to do so every time.With
AnyRenderableConvirtable
theStack
component can be responsible to callasAnyRenderable()
on it's children :)