This is surely the wrong way round?
case ALAxisVertical:
layoutAttribute = NSLayoutAttributeCenterX;
break;
case ALAxisHorizontal:
layoutAttribute = NSLayoutAttributeCenterY;
break;
Or perhaps I'm misunderstanding here? I would expect a horizontal axis alignment to centre along the X axis and a vertical axis alignment to centre along the Y axis.
This is surely the wrong way round?
Or perhaps I'm misunderstanding here? I would expect a horizontal axis alignment to centre along the X axis and a vertical axis alignment to centre along the Y axis.