layout-anchor

How to update anchor constraint in swift

我与影子孤独终老i 提交于 2020-03-05 03:31:49
问题 I would like to create a menu like android in iOS. I'm using layout constraints to setup constraints . I'm facing the issue when I'm trying to update the left constraint of an image on button click (It should animate to clicked button's position). Can anyone help me? It should support landscape and portrait. I don't want to user third party code and don't want to use the NSLayoutconstraint . Here is my code. class MenuViewController: UIViewController { var buttons: [UIButton] = [] var