Skip to content

marketplacer/custom-badge-swift

Repository files navigation

Overview

iOS badge indicator written in Swift. Supports autolayout, iOS 7, 8.

Custom Badge Swift

Usage

let badgeView = CustomBadge.customBadgeWithString("2",
  withStringColor: UIColor.whiteColor(),
  withInsetColor: UIColor.redColor(),
  withBadgeFrame: true,
  withBadgeFrameColor: UIColor.whiteColor(),
  withScale: 1.0,
  withShining: true)

Original version

This code is based on Objective-C version created by Sascha Paulus www.spaulus.com. https://github.com/ckteebe/CustomBadge

*** License & Copyright ***

Created by Sascha Paulus www.spaulus.com on 04/2011. Version 2.0 This tiny class can be used for free in private and commercial applications. Please feel free to modify, extend or distribution this class. If you modify it: Please send me your modified version of the class. Please do not sell the source code solely and keep this text in your copyright section. Thanks.

If you have any questions please feel free to contact me (open@spaulus.com).

About

iOS badge indicator written in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages