Need help with autolayout solution

Views A and B are equal in width (set up via a constraint). The actual width will vary at runtime.

What I want to do is arrange view A such that it is horizontally centered on B but offset to the left by 1/10th of the total width.

In other words, if views A and B were 100 units in length, I'd want A to be positioned 10 units to the left of B. If the width were 150 units then the A position would be 15 to the left, etc.

I thought I could do this with either a leading constraint or a centerX constraint using a multiplier of 0.9, but it isn't working out the way I want.

What's the best solution?

I'm doing this layout within the context of a tableview cell, so I don't really have access to view controller events. As far as I know there's no opportunity within a table cell to take action after layout has occurred. The sizes of the UI elements if examined in awakeFromNib are the same as they are in the Nib file, which is not what they end up being after they are rendered within the tableview.

Need help with autolayout solution
 
 
Q