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

Drop suppor of NS? #185

Open
mattmega4 opened this issue Apr 23, 2017 · 4 comments
Open

Drop suppor of NS? #185

mattmega4 opened this issue Apr 23, 2017 · 4 comments

Comments

@mattmega4
Copy link

Just curious if there are any plans to drop NS...such as NSArray and use just Array?

@chrisballinger
Copy link

That doesn't really make sense because this is an Objective-C library. They will import into Swift as Array.

@pronebird
Copy link
Contributor

pronebird commented May 13, 2017

@chrisballinger no they won't. autoRemoveConstraints does not work on arrays until you cast it to NSArray.

@chrisballinger
Copy link

@pronebird You're right, but you still can't make an Objective-C category on Array since it doesn't exist. I think someone could make a Swift compat shim that bridges the two via an Array extension.

@pronebird
Copy link
Contributor

pronebird commented May 15, 2017

@chrisballinger you think it's possible to bundle that shim with PureLayout and have it working in Swift projects?

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