Skip to content

Instantly share code, notes, and snippets.

Avatar

Magnus Nordin MagnusNordin

View GitHub Profile
@MagnusNordin
MagnusNordin / Badge.swift
Last active Feb 7, 2020 — forked from yonat/Badge.swift
Rounded UILabel and UIButton, Badged UIBarButtonItem
View Badge.swift
//
// Badge.swift
// Extensions for Rounded UILabel and UIButton, Badged UIBarButtonItem.
//
// Usage:
// let label = UILabel(badgeText: "Rounded Label");
// let button = UIButton(type: .System); button.rounded = true
// let barButton = UIBarButtonItem(badge: "42", title: "How Many Roads", target: self, action: "answer")
//
// Created by Yonat Sharon on 06.04.2015.
You can’t perform that action at this time.