Hi! I notice that the smart sizing that you specify in Design (aligning right on resize, etc.) doesn't persist on layers created using layer.copy(). Is it supposed to?
The pinning API is not yet public. If you want to use it you can check out the source on Github.
layer.constraintValues = top: 20, right: 10, bottom: null, left: nulllayer.layout()