Latest 1.0.1
Homepage https://github.com/maios/BadgifySwift
License MIT
Platforms ios 11.0
Authors ,

Badge this. Badge that.

A Swift version of GIBadgeView that also supports UIImage as badge.

Requirements

  • Xcode 9
  • Swift 4.0

Installations

BadgifySwift can be installed via CocoaPods or manual

CocoaPods

Before you start, make sure you have installed CocoaPods, you can follow the instructions here.

To integrate BadgifySwift into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'BadgifySwift'
end

Usage

import BadgifySwift

let badgeView = BadgeView()
myView.addSubview(badgeView)

// Set badge value
badgeView.badgeValue = 10

// Set badge image
badgeView.badgeImage = myImage

// Increment / Decrement
badgeView.increment()
badgeView.decrement()

Latest podspec

{
    "name": "BadgifySwift",
    "version": "1.0.1",
    "summary": "A Swift UI framework for badge view that supports image as badge",
    "homepage": "https://github.com/maios/BadgifySwift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "maios": "[email protected]",
        "maimai": "[email protected]"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source": {
        "git": "https://github.com/maios/BadgifySwift.git",
        "tag": "1.0.1"
    },
    "source_files": "Source/**/*.swift",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    }
}

Pin It on Pinterest

Share This