Skip to content

Instantly share code, notes, and snippets.

@HassanElDesouky
Created January 18, 2019 15:05
Show Gist options
  • Save HassanElDesouky/63c6d03a2349e3ac8143ed253aa7ef6f to your computer and use it in GitHub Desktop.
Save HassanElDesouky/63c6d03a2349e3ac8143ed253aa7ef6f to your computer and use it in GitHub Desktop.
01_medium_article_AppleVoiceMemosClone
//MARK:- Properties
var handleView = UIView()
//MARK:- Setup Methods
fileprivate func setupHandelView() {
handleView.layer.cornerRadius = 2.5
handleView.backgroundColor = UIColor(r: 208, g: 207, b: 205)
view.addSubview(handleView)
handleView.translatesAutoresizingMaskIntoConstraints = false
handleView.widthAnchor.constraint(equalToConstant: 37.5).isActive = true
handleView.heightAnchor.constraint(equalToConstant: 5).isActive = true
handleView.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
handleView.topAnchor.constraint(equalTo: view.topAnchor, constant: 10).isActive = true
handleView.alpha = 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment