robb / Cartography

A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:
Other
7.35k stars 524 forks source link

Xcode 11 beta build error #313

Open hoangtuanfithou opened 4 years ago

hoangtuanfithou commented 4 years ago

May I know how to resolve this error:

Thanks so much

viniciusromani commented 4 years ago

I'm having the same issue as well. Any update on this?

orta commented 4 years ago

No merged PRs on it - you're welcome to look at it

luko-g commented 4 years ago

@hoangtuanfithou @viniciusromani Check out https://github.com/robb/Cartography/pull/314

@orta I created a PR to fix this. Seems like function name constrain is reserved for a Cocoa SDK. In the PR i renamed the function to cg_constrain. Not the best name but it compiles.

luko-g commented 4 years ago

Alternatively you can use namespaces. Cartography.constrain