Skip to content

Instantly share code, notes, and snippets.

View toioski's full-sized avatar

Vittorio Morganti toioski

View GitHub Profile
@toioski
toioski / UIButton+ClipBackgroundImageToBounds.swift
Last active August 29, 2015 14:17
Conversion to Swift of Barry Allard UIView+ClipBackgroundImageToBounds
//
// UIView+ClipBackgroundImageToBounds.m
//
// Created by Barry Allard on 2013-06-18.
// Copyright (c) 2013 Stealth Mode Industries LLC. All rights reserved.
//
// Based on http://stackoverflow.com/questions/262156/uiimage-rounded-corners
//
// MIT License