Created
January 18, 2019 15:05
-
-
Save HassanElDesouky/63c6d03a2349e3ac8143ed253aa7ef6f to your computer and use it in GitHub Desktop.
01_medium_article_AppleVoiceMemosClone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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