Cacao
Cacao copied to clipboard
Implement autolayout
Autolayout makes layouts for different screen sizes a breeze. I think it would be a great addition to the project.
It looks like some efforts have already been made to port or wrap the cassowary constraint solver to swift, see https://github.com/FormidableLabs/Phaedo
A similar effort has been made in this project, but wrapping to objective-j, and it has worked quite well https://github.com/cacaodev/cappuccino
Sent from my Google Nexus 6P using FastHub
And then there's https://github.com/hfossli/amoeba/tree/swift?files=1
We need a Pure Swift AutoLayout implementation. The C++ library https://github.com/FormidableLabs/Phaedo is not viable since ObjC is not available on Linux and non-Darwin platforms.
https://github.com/starwing/amoeba Might be a viable solution (for starting), but would need a Swift wrapper. Im open to any PRs.
I have written a swift wrapper around amoeba. See my link. I’m sure Starwing is fine with merging that swift wrapper and adding a package.swift
I’m open to any license on my part (do what you want)
Here also a list of various implementations in various languages http://overconstrained.io/
Someone would have to write an NSAutoLayout API wrapper on top of this lib. Again, I'm open to any PRs.