Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 446 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 446 Bytes

Backpack/Badge

Usage

BPKBadge/Backpack.Badge contains the Backpack Badge component. It has 6 different styles defined in BPKBadgeType and can contain a message.

Objective-C

#import <Backpack/Badge.h>

BPKBadge *badge = [[BPKBadge alloc] initWithType:BPKBadgeTypeSuccess message:@"Hello Travel"];

Swift

import Backpack

let badge = Backpack.Badge(type: .success, message: "Hello Travel")