例えば、ボタンにオートレイアウトを設定する場合。 var uiButton: UIButton() uiButton.translatesAutoresizingMaskIntoConstraints = false // ボタンの上端は、親ビュー上端から0ptの位置 uiButton.topAnchor.constraint(equalTo: self.view.topAnchor, constant: 0).isActive = true // ボタンの下端は、親ビュー下端から0ptの位置 uiButton.bottomAnchor.constraint(equalTo: self.view.bottomAnchor, constant: 0).isActive = true // ボタンの左端は、親ビュー左端から0ptの位置 uiButton.leadingAnchor.constr