Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants