Skip to content

Instantly share code, notes, and snippets.

@yusefmaali
yusefmaali / LayoutableButton.swift
Created Apr 30, 2017 — 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
View LayoutableButton.swift
// Created by Guillaume BITAUDEAU on 19/01/2017.
// @see : http://stackoverflow.com/a/41744464/1661338
import UIKit
@IBDesignable
class LayoutableButton: UIButton {
enum VerticalAlignment : String {
You can’t perform that action at this time.