Skip to content

Instantly share code, notes, and snippets.

@cardoso
Last active June 10, 2020 01:38
Show Gist options
  • Save cardoso/c511a9d89d6f907d01be6691eed2cbc7 to your computer and use it in GitHub Desktop.
Save cardoso/c511a9d89d6f907d01be6691eed2cbc7 to your computer and use it in GitHub Desktop.
extension JoinViewController {
func setupConstraints() {
view.addConstraints([
patientButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
patientButton.centerYAnchor.constraint(equalTo: view.safeAreaLayoutGuide.centerYAnchor, constant: -100),
doctorButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
doctorButton.centerYAnchor.constraint(equalTo: patientButton.centerYAnchor, constant: 100)
])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment