Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement autolayout #26

Open
MFAshby opened this issue Aug 2, 2017 · 7 comments
Open

Implement autolayout #26

MFAshby opened this issue Aug 2, 2017 · 7 comments

Comments

@MFAshby
Copy link

MFAshby commented Aug 2, 2017

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

@MFAshby
Copy link
Author

MFAshby commented Aug 2, 2017

See discussion #swift on overconstrained.slack.com

Sent from my Google Nexus 6P using FastHub

@hfossli
Copy link

hfossli commented Aug 2, 2017

@colemancda
Copy link
Member

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.

@hfossli
Copy link

hfossli commented Nov 18, 2017

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

@hfossli
Copy link

hfossli commented Nov 18, 2017

I’m open to any license on my part (do what you want)

@hfossli
Copy link

hfossli commented Nov 18, 2017

Here also a list of various implementations in various languages http://overconstrained.io/

@colemancda
Copy link
Member

Someone would have to write an NSAutoLayout API wrapper on top of this lib. Again, I'm open to any PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants