Skip to content

Instantly share code, notes, and snippets.

View bryanstrader's full-sized avatar

Bryan Strader bryanstrader

  • Peoria, AZ
View GitHub Profile
@bryanstrader
bryanstrader / CustomButton.swift
Last active July 18, 2017 21:51 — forked from soggybag/CustomButton.swift
Custom Designable, Inspectable button with border and corner radius.
import Foundation
import UIKit
@IBDesignable
class CustomButton: UIButton {
@IBInspectable var borderWidth: CGFloat = 0 {
didSet {
layer.borderWidth = self.borderWidth