Skip to content

Instantly share code, notes, and snippets.

@dejanskledar
Created October 16, 2017 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dejanskledar/52370472d255d239a726d5d95259fdf9 to your computer and use it in GitHub Desktop.
Save dejanskledar/52370472d255d239a726d5d95259fdf9 to your computer and use it in GitHub Desktop.
middleButton.frame.size = CGSize(width: 70, height: 70)
middleButton.backgroundColor = .blue
middleButton.layer.cornerRadius = 35
middleButton.layer.masksToBounds = true
middleButton.center = CGPoint(x: UIScreen.main.bounds.width / 2, y:
UIScreen.main.bounds.height - 40)
view.addSubview(middleButton)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment