Closed BlakeRxxk closed 4 years ago
Hey Blake, Stretch isn't really designed to be used from user-space code. It is more designed to be used at the heart of GUI libraries and thus provides a very low level api. It is up to higher level libraries and frameworks to provide a consistent api frontend to stretch. The reason for this is so that we can focus on the algorithmic implementation and low level platform bindings in this project and don't need to worry about supporting bindings for every platform and UI framework out there.
Oh I see. I thought about Stretch as replacement of Yoga+YogaKit, my mistake. Anyway, interesting project 👍
It's a replacement for Yoga :) I would love to have the YogaKit equivalent implemented on top of Stretch but it is not something we have the time to maintain as part of this repository. If that is something you would like to build I'm more than happy to give input on implementation as well as feature your project on the stretch website 👍
Actually I was thinking about it. I'll take a shot 👍
I decided to try stretch in demo project and I get frustrated. How should I work with UIView/UILabels and etc.
for example (layout code from docs with small tweaks):
questions:
ps: stretch looks very promising and it need better documentation with examples