Skip to content

New Objective-C interface

Choose a tag to compare

@lucdion lucdion released this 18 May 19:36
· 143 commits to master since this release

New Objective-C interface

Instead of using verbose Objective-C with all brackets ([ ]):

[[[[[[logo.pinObjc top] left] width:100] aspectRatio] marginWithTop:topLayoutGuide + 10 horizontal:10 bottom:10] layout];

It now use function chaining:

logo.pinObjc.topInsets(safeArea).leftInsets(safeArea).width(100).aspectRatio().margin(margin).layout();

Added by protosse in Pull Request #229