Created
May 17, 2015 01:01
-
-
Save garmstro/e8468e1103077f715488 to your computer and use it in GitHub Desktop.
Rounded Rect Class
This file contains hidden or 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
| // | |
| // RoundedRectView.swift | |
| // SummitPeek | |
| // | |
| // Created by Geoff Armstrong on 5/4/15. | |
| // Copyright (c) 2015 Geoff Armstrong. All rights reserved. | |
| // | |
| import UIKit | |
| class RoundedRectView: UIView { | |
| override init(frame aFrame: CGRect) { | |
| super.init(frame: aFrame) | |
| self.layer.cornerRadius = 10 | |
| self.backgroundColor = UIColor.darkGrayColor() | |
| } | |
| required init(coder aDecoder: NSCoder) { | |
| super.init(coder: aDecoder) | |
| self.layer.cornerRadius = 10 | |
| self.backgroundColor = UIColor.darkGrayColor() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment