Skip to content

Instantly share code, notes, and snippets.

@yusefmaali
yusefmaali / LayoutableButton.swift
Created April 30, 2017 02:47 — forked from gbitaudeau/LayoutableButton.swift
I created a UIButton subclass whose purpose is to be able to choose where the button's image is layout, either vertically or horizontally. See http://stackoverflow.com/a/41744464/1661338
// Created by Guillaume BITAUDEAU on 19/01/2017.
// @see : http://stackoverflow.com/a/41744464/1661338
import UIKit
@IBDesignable
class LayoutableButton: UIButton {
enum VerticalAlignment : String {