@IBAction func axisChange(sender: UISwitch) {
UIView.animateWithDuration(1.0) {
self.updateConstraintsForAxis()
}
}
The updateConstraintForAxis function just sets the axis of the stack view containing the two image views:
private func updateConstraintsForAxis() {
if (axi...