Skip to content

Instantly share code, notes, and snippets.

@garmstro
Created May 17, 2015 01:01
Show Gist options
  • Select an option

  • Save garmstro/e8468e1103077f715488 to your computer and use it in GitHub Desktop.

Select an option

Save garmstro/e8468e1103077f715488 to your computer and use it in GitHub Desktop.
Rounded Rect Class
//
// 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